curl --request POST \
--url https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"AddressId": "<string>",
"LocationListId": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"OriginLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"MaxDistance": 123,
"InputUnit": 0,
"MaxResults": 123,
"OrderBy": 0,
"TransportationType": 0
}
'{
"OriginLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"DestinationLocations": [
{
"DestinationLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"Distance": "<string>",
"DistanceMiles": "<string>",
"DistanceMeters": 123,
"Time": "<string>",
"TimeSeconds": 123
}
]
}Find road-based distances and travel times between locations. Returns up to 100 nearest points within 500km radius.
curl --request POST \
--url https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws \
--header 'Content-Type: application/json' \
--data '
{
"Key": "AA11-AA11-AA11-AA11",
"AddressId": "<string>",
"LocationListId": "<string>",
"Locations": [
{
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
}
],
"OriginLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"MaxDistance": 123,
"InputUnit": 0,
"MaxResults": 123,
"OrderBy": 0,
"TransportationType": 0
}
'{
"OriginLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"DestinationLocations": [
{
"DestinationLocation": {
"Id": "<string>",
"Name": "<string>",
"Description": "<string>",
"Address": "<string>",
"Country": "<string>",
"Latitude": "<string>",
"Longitude": "<string>",
"MetaInfo": {},
"UnstructuredMetaInfo": {},
"OpeningHours": {
"Monday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Tuesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Wednesday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Thursday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Friday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Saturday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
},
"Sunday": {
"Open": "<string>",
"Close": "<string>",
"Information": "<string>"
}
}
},
"Distance": "<string>",
"DistanceMiles": "<string>",
"DistanceMeters": 123,
"Time": "<string>",
"TimeSeconds": 123
}
]
}The key used to authenticate with the service. For example: 'AA11-AA11-AA11-AA11'
A GuID that identifies a list previously created using our Create List API. When this field is populated with a valid ID, the API will utilise the list for your destination locations.
An array of strings that is populated with information about a location. Any points in the locations object will be used to calculate distances from your origin location. If not using a previously uploaded Location List then at least one location must be sent in the request.
Show child attributes
Identifier for the location. This must be unique for each location provided within the request.
Name of the location.
Description of the location for display purposes.
Address of the location for display purposes.
The WGS 84 latitude in decimal degrees format.
The WGS 84 longitude in decimal degrees format.
Show child attributes
An array of strings that is populated with information about your origin location. This will be the starting point for all distances calculated via the API.
Show child attributes
Identifier for the location. This must be unique for each location provided within the request.
Name of the location.
Description of the location for display purposes.
Address of the location for display purposes.
The WGS 84 latitude in decimal degrees format.
The WGS 84 longitude in decimal degrees format.
Show child attributes
The maximum straight line distance radius of results that will be returned, starting from the original location, in metres. For example, setting a maxDistance of 100000 will only return results within a 100km radius of the origin. By default this is set to 100km with a maximum value of 500km. A smaller search radius will improve performance.
0, 1, 2 The maximum number of locations you want returned. By default this is set to 10 with a maximum value of 100. Reducing the number of results returned will also improve performance.
The order in which you want results to be returned. By default this will return locations in ascending distance order (i.e. closest location first). Time can be passed instead, to return in order of ascending travel time.
0, 1 0, 1, 2, 3, 4, 5, 6, 7 Success
An array of strings containing the originLocation from the original request.
Show child attributes
Identifier for the location.
Name of the location.
Description of the location for display purposes.
Address of the location for display purposes.
The WGS 84 latitude in decimal degrees format.
The WGS 84 longitude in decimal degrees format.
Show child attributes
An array of objects containing the destination locations and results for distance/time calculation.
Show child attributes
This field contains the information provided as part of the locations array in the original request.
Show child attributes
Identifier for the location.
Name of the location.
Description of the location for display purposes.
Address of the location for display purposes.
The WGS 84 latitude in decimal degrees format.
The WGS 84 longitude in decimal degrees format.
Show child attributes
The distance by road in kilometres returned as a string.
The distance by road in miles returned as an string.
The distance by road in metres returned as an integer.
The travel time displayed as seconds, minutes or hours.
The travel time displayed in seconds as an integer.
Was this page helpful?