curl --request POST \
--url 'https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=' \
--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,
"MaxResults": 123
}
'import requests
url = "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key="
payload = {
"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,
"MaxResults": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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,
MaxResults: 123
})
};
fetch('https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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,
'MaxResults' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}"
response = http.request(request)
puts response.read_body{
"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
}
]
}Global Distance Finder
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?Key=' \
--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,
"MaxResults": 123
}
'import requests
url = "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key="
payload = {
"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,
"MaxResults": 123
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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,
MaxResults: 123
})
};
fetch('https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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,
'MaxResults' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key="
payload := strings.NewReader("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=")
.header("Content-Type", "application/json")
.body("{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.addressy.com/LocationServices/DistanceFinder/Nearby/v1.10/json6.ws?Key=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"Key\": \"AA11-AA11-AA11-AA11\",\n \"AddressId\": \"<string>\",\n \"LocationListId\": \"<string>\",\n \"Locations\": [\n {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n }\n ],\n \"OriginLocation\": {\n \"Id\": \"<string>\",\n \"Name\": \"<string>\",\n \"Description\": \"<string>\",\n \"Address\": \"<string>\",\n \"Country\": \"<string>\",\n \"Latitude\": \"<string>\",\n \"Longitude\": \"<string>\",\n \"MetaInfo\": {},\n \"UnstructuredMetaInfo\": {},\n \"OpeningHours\": {\n \"Monday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Tuesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Wednesday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Thursday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Friday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Saturday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n },\n \"Sunday\": {\n \"Open\": \"<string>\",\n \"Close\": \"<string>\",\n \"Information\": \"<string>\"\n }\n }\n },\n \"MaxDistance\": 123,\n \"MaxResults\": 123\n}"
response = http.request(request)
puts response.read_body{
"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
}
]
}Authorizations
Body
The key you want to use to authenticate with the service (you can request we create one for you or create one in your account section).
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
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
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.
The unit type that you have supplied the MaxDistance field in.
Meters, Miles, Kilometers 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.
Distance, Time Was this page helpful?

