×
Menu
Index

3.6.1.7. HubGEOAPI

 
Since version 1.0.2.73
 
The HubGEOAPI object contains the methods to use the Google Geolocation API services through VB Scripting.
*It requires an active Google Geolocation Service configured; either a ChronoScan service account with credits configured or an external Google Cloud application with a valid API_KEY.
 
Methods:
Type
Method
Description
Short
Short : ProcessAddressInfo(<String> address, <String>? country)
 
Info:
Succesful ProcessAddressInfo requests consume credits or is under your Google Cloud app billing conditions.
Description:
   Request to Google geocode service with a provided address and country (optional) and sets the response (json) inside the HubGEOAPI object.
 
Returns:
  0 Error
  1 Success
 
 
String
String : GetResponseText()
Description:
  Returns the API response as a string.
 
String
String : GetAddressComponent(<String> property_name)
Description:
  Returns a desired property from a successful ProcessAddressInfo request.
 
Available properties:
formatted_address
country_name
street
street_number
city
postal_code
latitude
lat (alias)
longitude
lng (alias)
 
 
String
String : GetLastErrorText()
Description:
  Returns last request error if any.