如何在本机android应用程序开发中使用OpenStreetMap [英] How to use OpenStreetMap in native android app development

查看:218
本文介绍了如何在本机android应用程序开发中使用OpenStreetMap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我的Android手机中具有默认的Android"Dummy Content"本机应用程序版本.现在,我需要使用开放式街道地图应用程序并将其与GPS位置集成到此版本中..

Hello I have the default android " Dummy Content " native app build in my android phone.. now I need to use the open street map applicaiton and intergrate it into this build with a GPS location ..

我在Google搜索中找不到任何信息.任何人都可以通过链接或建议帮助我吗?

I could not find any infos in google search.. can any one help me with the links or suggestions?

还有哪个更好,更容易做? Google地图或在Android设备中打开陡峭的地图...

Also which is better and ease of doing? Google maps or open streep maps in Android Devices...

请让我知道.

推荐答案

如果要显示地图内容,可以使用Google Maps(已经在Android库中)完成,也可以使用其他地图数据(例如OpenStreetMap). 除其他社区外,有两个社区为OpenStreetMap数据地图开发了Android库:

If you want to show map content you can do it with Google Maps (already in Android libraries), or you can use different map data (e.g. OpenStreetMap). There are two known communities amongst others, who developed a Android Library for OpenStreetMap data maps:

  1. http://code.google.com/p/osmdroid /

https://code.google.com/p/mapsforge/

今天,Google的Google Map View是最易于使用的API.不幸的是,在某些方面它是商业化的.例如,不允许您开发将Google地图内容与转弯指南结合使用的应用程序(请参阅Google Maps服务条款: https://developers.google.com/maps/terms?hl=zh-CN ).相反,OSMDroid可免费使用所有内容.

At today, the Google's Google Map View is the most easy to use API. Unfortunetly it's commercial in some points. For example, you are not allowed to develop an application showing google map content in combination with turn-by-turn guidance (cf. Google Maps Terms of Service: https://developers.google.com/maps/terms?hl=en ). In opposite, OSMDroid is free to use for everything.

网络上有许多教程,它们逐步教您如何在应用程序的地图内容上显示设备的GPS位置.其中一些是:

There are many tutorials in the web, which teach step by step how to show the GPS location of the device on a maps content in your application. Some of them are:

Google地图: http://www. androidhive.info/2013/08/android-working-with-google-maps-v2/

Google Maps: http://www.androidhive.info/2013/08/android-working-with-google-maps-v2/

OSMDroid: http://android- er.blogspot.de/2012/05/display-current-location-marker-on.html

OSMDroid: http://android-er.blogspot.de/2012/05/display-current-location-marker-on.html

我收到了一些关于是否可以实施(和发布)逐步导航导航应用程序的问题.答案是肯定的. 在许可视图上,您​​不得使用googlemaps,而应例如OSMDroid在这里很好.

I received some question about if a turn-by-turn guidance navigation app is possible to implement (and publish). The answer is yes. On a license view, you must not use googlemaps, but e.g. OSMDroid is fine here.

我曾经使用OSMDroid作为地图视图库和OSMDroidBonusPack作为路由,地理编码和reverseGeocoding库来完成此操作(Bonuspack具有更多功能,请参见

I have done this myself once using OSMDroid as a mapview library and OSMDroidBonusPack as Routing, Geocoding and reverseGeocoding library (the bonuspack has several more features, see all at the git repository

我想提供另一个链接,该链接指向使用OSMDroid实现的现有导航应用程序,但似乎不再维护它们以进行更新.

I wanted to provide another link to existing navigation apps implemented by using OSMDroid, but it seems they are no longer maintained for updates.

这篇关于如何在本机android应用程序开发中使用OpenStreetMap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆