|
|
|
|
|
- Properties specific to Address variables
- Using Address variables
- Reinitialization
Address (Variable type) In french: Adresse
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, postal code, country) and/or a geographic position (latitude and longitude). You can define and change the characteristics of this address via different WLanguage properties. Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
MonAdresse is Address
MonAdresse.City = "Paris"
MonAdresse.Country = "France"
MapDisplayPosition(CARTE_Position, MonAdresse)
Properties Properties specific to Address variables The following properties can be used to define the characteristics of Address variables: | | | Property name | Type used | Effect |
---|
AdminArea | Character string | Region associated with the address (state for an address in the USA, land for an address in Germany, etc.). This property is optional. | City | Character string | Name of city. This property is optional. | Country | Character string | Name of the country. This property is optional. | | Character string | Label 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. | Position | geoPosition variable | Geographical position of 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. | Street | Character string | Name of the street, road or avenue. This property is optional. | | Integer constant | Type of address: - addressOther other type of address.
- office address: business (office) address.
- home address: home address.
- personalizedaddress custom type corresponding to the value of the Label.
This property is mainly used to manage the contacts. | ZipCode | Character string | Zip code of the address. This property is optional. |
Remarks Using Address variables Address variables are used by the following functions:
| | geoGetAddress | Retrieves an address or a list of addresses corresponding to the description of a geographic location. | MapAddItinerary | Adds an itinerary onto a Map control. | MapDisplayPosition | Centers the map displayed in a Map control on a geographical position or on a specific location. |
The Address variables are used by the following types of variables:
| | Contact | The Contact type is used to define the advanced characteristics of a contact found in the phone book. |
Reinitialization You can use VariableReset to reset the content of an Address variable.
Related Examples:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|