This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Function GetCoordinates(Address As String) As String | |
'----------------------------------------------------------------------------------------------------- | |
'This function returns the latitude and longitude of a given address using the Google Geocoding API. | |
'The function uses the "simplest" form of Google Geocoding API (sending only the address parameter), | |
'so, optional parameters such as bounds, key, language, region and components are NOT used. | |
'In case of multiple results (for example two cities sharing the same name), the function | |
'returns the FIRST OCCURRENCE, so be careful in the input address (tip: use the city name and the |