HERE maps - getting road type based on gps coordinates

前端 未结 2 1279
天涯浪人
天涯浪人 2021-01-24 09:20

Is it possible to get the type of road (e.g. motorway, primary, secondary) for given coordinates, using HERE maps RESTful API?

2条回答
  •  情深已故
    2021-01-24 09:49

    You can use the "getlinkinfo" endpoint of the routing service together with the "linkattributes=all" parameter to get the corresponding functional class value of a certain link:

    http://route.st.nlp.nokia.com/routing/6.2/getlinkinfo.xml?app_id=DemoAppId01082013GAL&app_code=AJKnXv84fjrb0KIHawS0Tg&waypoint=50.05564304861044,8.38889128575724&linkattributes=all

    More info about the functional class value:

    enter image description here

提交回复
热议问题