Directions
GET
https://api.woosmap.com/indoor/directions/{venue_id}
Returns the directions to go from an Origin to a Destination. Routing Configuration must be done before this endpoint will work.
Rate limit: 20/1s
Authorization
Path Parameters
venue_id
string required
Query Parameters
Response
OK
curl -L -X GET 'https://api.woosmap.com/indoor/directions/west_pal?language=en&units=metric&origin=3623024&destination=3625106&key=YOUR_PUBLIC_API_KEY' \
-H 'Referer: http://localhost'
import requests
url = "https://api.woosmap.com/indoor/directions/west_pal?language=en&units=metric&origin=3623024&destination=3625106&key=YOUR_PUBLIC_API_KEY"
payload={}
headers = {
'Referer': 'http://localhost'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("https://api.woosmap.com/indoor/directions/west_pal?language=en&units=metric&origin=3623024&destination=3625106&key=YOUR_PUBLIC_API_KEY", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
{
"routes": [
{
"bounds": [
-0.12493997331,
51.498230882255,
-0.12456220772511746,
51.49992534993494
],
"legs": [
{
"distance": {
"text": "217 meters",
"value": 217.48
},
"duration": {
"text": "218 seconds",
"value": 218
},
"end_location": {
"lat": 51.499924944345,
"level": 1,
"lng": -0.12461392044974706
},
"start_location": {
"lat": 51.498230882255,
"level": 1,
"lng": -0.12456220772511746
},
"steps": [
{
"bearing_end": -84.2851734177303,
"bearing_start": -84.2851734177303,
"distance": {
"text": "2 meters",
"value": 2.07
},
"duration": {
"text": "2 seconds",
"value": 2
},
"end_location": {
"lat": 51.4982349155,
"level": 1,
"lng": -0.12461111274
},
"instruction": {
"instruction_type": "walk_straight_walk_past",
"summary": "Walk straight past Toilets"
},
"poi_id": 3623024,
"polyline": [
[
-0.12458141958,
51.49823306561
],
[
-0.12461111274,
51.4982349155
]
],
"routing_profiles": [],
"start_location": {
"lat": 51.49823306561,
"level": 1,
"lng": -0.12458141958
}
},
{
"bearing_end": -81.48387948754326,
"bearing_start": -84.28520875361633,
"distance": {
"text": "1 meters",
"value": 1.47
},
"duration": {
"text": "2 seconds",
"value": 2
},
"end_location": {
"lat": 51.49823646981,
"level": 1,
"lng": -0.12463215818
},
"instruction": {
"instruction_type": "walk_straight_walk_past",
"summary": "Walk straight past Lord Chamberlain's Private Office"
},
"poi_id": 3624060,
"polyline": [
[
-0.12461111274,
51.4982349155
],
[
-0.12462429286,
51.49823573662
],
[
-0.12463215818,
51.49823646981
]
],
"routing_profiles": [],
"start_location": {
"lat": 51.4982349155,
"level": 1,
"lng": -0.12461111274
}
}
]
}
]
}
],
"status": "ok"
}