Last-Mile Navigation

Note An API key is required to access the last-mile APIs. If you need one, check our authentication page

Let's create a walking route to our favourite swimming spot!

Here you can see the route of our last-mile journey mapped precisely.

Next, we add the route as a byway, to supplement the navigation information already present for main roads & routes. We POST a request to the last-mile navigation API

POST

https://api.unl.global/v1/byway

{
"geohash": "u179bub22",
"label": "To our usual swimming spot!",
"gates": [
{
"geohash": "u179bub2b",
"composedPath": [
"52.36511,4.955199",
"52.365024,4.955199"
],
"transportTypes": [ "pedestrian" ],
"sequenceNumber": 0,
},
{
"geohash": "u179bszf2",
"composedPath": [
"52.365367,4.954512",
"52.3652385,4.9548555",
"52.36511,4.955199"
],
"transportTypes": [ "pedestrian" ],
"sequenceNumber": 1,
},
...
],
"length": 463,
"words": "speculative.exfoliation.filtration"
}

With a successful response, the system will now be able to incorporate our route when navigating users. Using the predefined road & path networks to reach the beginning of our last-mile instructions and then seamlessly through the final piece of their journey using the route we defined.