POST api.ashx/v2/geocoding/geocode.{json|xml}
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
IncludeMapUrl | bool | Request Body | Include external link to Google map | Required | ||
Query | string | Request Body | Contents of the query to send to Google | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/geocoding/geocode.json', data: { 'IncludeMapUrl': 'True', 'Query': 'query' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Event": { "HasErrors": false, "Latitude": 0.33, "Longitude": 0.25, "Errors": [], "AddressString": "addressstring", "ErrorMessage": "", "MapUrl": "mapurl", "ResponseData": "responsedata", "ServiceLink": "servicelink" }, "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Event> <Latitude>0.33</Latitude> <Longitude>0.25</Longitude> <AddressString>addressstring</AddressString> <MapUrl>mapurl</MapUrl> <ResponseData>responsedata</ResponseData> <ServiceLink>servicelink</ServiceLink> </Event> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>