This method will return javascript code for either Mapbox or Google Maps depending on the country determined from the passed IP address or lat/lng.

This method requires that you provide your own Google API key. This can be updated under Settings>Setup>Mapping.

To geocode a location address either of the below is required:

Country and postal code


Country and city and/or state.

If neither this data is provided in the locations structure, the web service will return Bad Request response.

If any of the locations in the Locations list do not have geocodes. they will be geocoded as part of this service based on the above rules.

Reference the following article on how to configure Google Maps API key:

Click Try It! to start a request and see the response here!