PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of Address variables
  • Using Address variables
  • Reinitialization
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Address type is used to manipulate the address of a place or person. An address is defined by a postal address (street, city, state, zip code, country) and/or a geographic position (latitude and longitude). The characteristics of this address can be defined and modified via different WLanguage properties.
Remark: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Versions 18 and later
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
New in version 18
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
iPhone/iPad This type of variable is now available for iPhone/iPad applications.
Versions 20 and later
PHP This type of variable is now available for PHP WEBDEV sites.
New in version 20
PHP This type of variable is now available for PHP WEBDEV sites.
PHP This type of variable is now available for PHP WEBDEV sites.
Versions 21 and later
Universal Windows 10 App This type of variable is now available for applications in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This type of variable is now available for applications in Universal Windows 10 App mode.
Universal Windows 10 App This type of variable is now available for applications in Universal Windows 10 App mode.
Example
MyAddress is Address
MyAddress.City = "Paris"
MyAddress.Country = "France"
 
// Centers the map displayed by the "MAP_Position" control from an address
MapDisplayPosition(MAP_Position, MyAddress)
Remarks

Properties specific to the description of Address variables

The following properties can be used to handle an Address variable:
Property nameType usedEffect
ZipCodeCharacter stringZip code of the address.
This property is optional.
Versions 18 and later
Android Label
New in version 18
Android Label
Android Label
Character stringLabel for the types of custom addresses (optional).
If Type does not correspond to the addressCustom constant, the value of this property will be ignored.
This property is mainly used to manage the contacts.
CountryCharacter stringName of the country. This property is optional.
PositiongeoPosition variableGeographic position of the address: latitude and longitude.
This property is optional.
If the geographic position is not specified, the PositionValid property of the geoPosition variable is set to False.
AdminAreaCharacter stringRegion associated with the address (state for an address in the USA, land for an address in Germany, etc.).
This property is optional.
StreetCharacter stringName of the street, road or avenue.
This property is optional.
Versions 18 and later
Android Type
New in version 18
Android Type
Android Type
Integer constantType of address:
  • addressOther: other type of address.
  • addressWork: professional address (office).
  • addressHome: home address.
  • addressCustom: custom type corresponding to the value of the Label property
This property is mainly used to manage the contacts.
CityCharacter stringName of city.
This property is optional.

Using Address variables

Address variables are used by the following functions:
Versions 17 and later
geoGetAddress
New in version 17
geoGetAddress
geoGetAddress
Retrieves an address or a list of addresses corresponding to the description of a geographic location.
Versions 18 and later
MapAddItinerary
New in version 18
MapAddItinerary
MapAddItinerary
Adds an itinerary onto a Map control.
Versions 17 and later
MapDisplayPosition
New in version 17
MapDisplayPosition
MapDisplayPosition
Centers the map displayed in a Map control on a geographical position or on a specific location.
Address variables are used by the following types of variables:
Versions 17 and later
Contact
New in version 17
Contact
Contact
The Contact type is used to define the advanced characteristics of a contact found in the phone book.

Reinitialization

To reinitialize the content of an Address variable, you can use VariableReset.
Related Examples:
WM Geolocation Cross-platform examples (WINDEV Mobile): WM Geolocation
[ + ] This example explains how to perform proximity searches with geolocation :
- search around me
- search in a city, at a given address, or close to a specific address.
The results are displayed in a looper and in a map with markers.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment