ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Geolocation functions
  • Managing multiple addresses (syntax 1)
  • Required application feature
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
Retrieves an address or a list of addresses corresponding to the description of a geographic location.
Example
// Retrieves the address of a monument
MyAddress is Address
MyAddress = geoGetAddress("Eiffel Tower")
IF ErrorOccurred = False THEN
Info(MyAddress.Country)
END
Syntax

Retrieving a list of addresses (asynchronous mode) Hide the details

geoGetAddress(<Description> , <WLanguage procedure> [, <Number of addresses>])
<Description>: Character string
Location whose address must be retrieved. This character string can correspond to:
  • the location specified as city and country. Example: "Paris, France".
    Remark: The location must be specified in the language of the telephone.
  • the location expressed by the position ("<latitude>, <longitude>"). Example: "43.639942,3.837672".
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called for the place with the address that must be retrieved. For more details on this procedure, see Parameters of the procedure used by geoGetAddress.
<Number of addresses>: Optional integer
Maximum number of addresses returned in the list. If this parameter is not specified, the maximum number of addresses will be set to 10.
Remarks

Managing multiple addresses (syntax 1)

If multiple addresses correspond to the same description:
    To get the list of addresses that match the description, use the second or third syntax. You can use OpenMobileWindow or OpenAsynchronous to open a selection window.
    Universal Windows 10 App

    Required application feature

    When this function is used, an application feature is declared in the application generation wizard.
    Required feature: Internet and public networks (incoming and outgoing)
    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.
    Business / UI classification: Business Logic
    Component: wd300device.dll
    Minimum version required
    • Version 17
    This page is also available for…
    Comments
    GPS Functions
    https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/519-busca-endereco-rota-endereco-das-coordendas-523/read.awp?hl=enderecodascoordenadas

    https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/2875-informatica-exemplo-google-maps-com-json-retornando-distancia/read.awp?lastview
    BOLLER
    10 Nov. 2018
    Video Trajeto Mapa


    https://youtu.be/bSk0ysOlacE
    amarildo
    03 Nov. 2018

    Last update: 06/23/2023

    Send a report | Local help