X4 Produktdokumentation

Google Maps

This adapter accesses the Google Maps Platform through the Google Maps SDK for Java and determines the geographic information for an address. In addition, a route including waypoints can be calculated and a URL to a Google Maps map section can be generated. The adapter returns its results as an XML or JSON document.

Properties

Operation

Describes which operation the adapter performs.

For more information on the parameters, status values, inputs, and outputs of each operation, see the corresponding subpages.

Possible values:

  • Geocode: Converts an address to coordinates (longitude and latitude).

  • ReverseGeocode: Converts coordinates (longitude and latitude) to a readable address.

  • GetRoutes: Calculates a route between two or more locations.

  • CreateGoogleURL: Generates a URL for Google APIs, especially for the Maps Static API.

Parameters

apiKey

✳️

This parameter is required.

API key used to authenticate to Google Maps

Possible values:

  • Unique alphanumeric string

Note:

Alternatively, if supported, OAuth.2.0 authentication mechanisms can be used.

privateKey

This parameter is not required for the CreateGoogleURL operation.

Private key to generate the URL signature secret

Possible values:

  • Any valid string

outputFormat

Define the output format for the API response

Possible values:

  • xml (default): Output an XML document

  • json: Output an JSON document

timeout

Time limit TCP connection in milliseconds

Possible values:

  • Any integer

  • 0: No time limit

  • 20000 (default): Cancel the connection after 20 seconds