Search code examples
resthere-api

Nokia Maps: retrieve speed limit based on coordinates using REST API


I am sure it's possible to retrieve speed limit on the road based on coordinates. I just can't find any example (rest API). As I understand I need to use routing mechanism to do that?


Solution

  • You will need to use the getLinkInfo endpoint from the Enterprise Routing API.. The speedLimit element returned is in m/s so multiply by 3.6 for km/h or 2.23 for mph. If the speedLimit element is missing then the national speed limit applies.

    http://route.st.nlp.nokia.com/routing/6.2/getlinkinfo.json?waypoint=52.5308,13.3846&app_id=your_app_id&app_code=your_app_code

    A working example can be found on the HERE Maps Community Examples on GitHub