简体   繁体   中英

Draw routes in Nutiteq 3D in Android

Hi I am developing a Map based application where I am using Nutiteq 3D library to implement the 3D view. But now can not draw routes between two points on that 3D map. Can anyone please help me to draw routes between two points on that 3D map developed on Nutiteq 3D library?

Thanks in advance.

Nutiteq SDK itself does not have built-in function for that, but you can use external tools and services for it.

First get shortest route between two points. Here are some suggested suitable online services with OpenStreetMap data:

With any of them would need to create HTTP request and parse response into Line for SDK

You can also use offline routing tool. GraphHopper is free routing tool under development, but quite promising already.

Then draw the Line on map . General instruction for adding lines, points and polygons to map can be found from Nutiteq SDK wiki Vector Object page

Update: there are now some routing example apps: with online and offline in Nutiteq Wiki page

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM