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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 changed via different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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
AdminAreaCharacter stringRegion associated with the address (state for an address in the USA, land for an address in Germany, etc.).
This property is optional.
CityCharacter stringName of city.
This property is optional.
CountryCharacter stringName of the country. This property is optional.
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.
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.
StreetCharacter stringName of the street, road or avenue.
This property is optional.
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.
ZipCodeCharacter stringZip code of the address.
This property is optional.

Using Address variables

Address variables are used by the following functions:
MapDisplayPositionCenters the map displayed in a Map control on a geographical position or on a specific location.
MapAddItineraryAdds an itinerary onto a Map control.
geoGetAddressRetrieves an address or a list of addresses corresponding to the description of a geographic location.
Address variables are used by the following types of variables:
ContactThe 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:
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