In Here-API how do we show downloaded region package NMAMapLoader in MapView?

∥☆過路亽.° 提交于 2019-12-11 17:10:00

问题


I downloaded and run map-downloader-ios-swift (https://github.com/heremaps/here-ios-sdk-examples/blob/master/map-downloader-ios) project and it worked well. After finished download 1 region package, how do we show that region in mapview without an internet connection? Also is it possible to add routes in that downloaded region in offline mode?

Thank you.


回答1:


In offline mode, cached map data is used for rendering, routing, searching, etc. So since you have downloaded the map region package of interest, viewing and routing requests related to to this region will be done with the cached data. Please read this reference (also applicable to iOS):

https://developer.here.com/documentation/android-premium/dev_guide/topics/routing-offline.html

And as stated on the reference page: There is no guarantee that online and offline routes will be the same as different algorithms are used for online and offline route calculation. Online route calculation is performed on high performance servers, therefore more computationally intensive algorithms are used online, which cannot be used offline. Online route calculation should be preferred and offline routes are expected to be used as backup especially when there is no connectivity.



来源:https://stackoverflow.com/questions/56040853/in-here-api-how-do-we-show-downloaded-region-package-nmamaploader-in-mapview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!