打开 Android 版街道地图 API

发布于 2024-12-17 08:40:37 字数 106 浏览 4 评论 0 原文

有谁知道在哪里可以找到适用于 Android 的开放街道地图 api? 我搜索了该网站,我所能看到的只是其他人的实现。

我正在寻找一个可以集成到另一个应用程序中并完全定制的应用程序。

Does anyone know where I can find the open street maps api for android?
I have searched the site and all I can see is other peoples implementations of it.

I'm looking for one which can be integrated into another app and fully customized.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

何处潇湘 2024-12-24 08:40:37

您可以使用 Osmdroid API 集成 OSM。这为您提供了与 Google 地图非常相似的功能,但如果您使用 Mobile Atlas Creator (MOBAC) 准备图块,您也可以离线使用 OSM 图块

请参阅 Osmdroid home页面 (GitHub)

您只需要在构建路径中添加 osmdroid-android-3.0.5.jar 即可。您不需要像 Google 要求的 API 密钥,并且图块会被缓存,因此下次您访问该位置时,您可以节省数据下载成本/时间。

虽然有一些小bug,但总体还是不错的

You can integrate OSM by using the Osmdroid API. This gives you functionality very similar to Google maps but you can also use OSM tiles offline if you prepare the tiles with Mobile Atlas Creator (MOBAC)

See Osmdroid home page (GitHub)

You just need the osmdroid-android-3.0.5.jar in your build path. You don't need an API key like Google demands and tiles get cached, so next time you visit that location you save on data download costs/time.

It's got a few tiny bugs, but overall it's pretty good

℉服软 2024-12-24 08:40:37

如果您想要商业应用程序,那么值得一看“商业级 Android SDK” - 所有供应商都允许您自定义您的应用程序(根据供应商的不同,自定义程度可能会有所不同),并且我相信所有供应商都有“免费套餐”(您实际上不必支付的付款计划:))可能对您的应用程序来说足够好(或者至少在您的应用程序取得商业成功之前您不必付费)。

举几个 Android SDK 提供商的例子:

  • skobbler(现在的 Telenav)有一个 SDK,能够渲染地图和;在 Android 手机上显示逐段导航。它还支持离线模式。查看他们的开发者平台了解详细信息
  • OsmSharp 还可以进行地图渲染和逐段导航。您可以从 github
  • MapQuest 有一个不错的 地图和地图Android 的路由引擎。我认为您还可以将他们的路线服务与 Mapbox 地图一起使用(请参阅作为起始观点)。我不认为他们可以做离线模式

If you are going for a commercial app them it's worth taking a look at "commercial grade Android SDKs" - all vendors allow you to customise your app (depending on the vendor, the degree of customisation may vary), and I believe all vendors have "free tiers" (payment plans where you actually don't have to pay :) ) that might be good enough for your app (or at least you don't have to pay until your app is commercially successful).

To name a couple Android SDK providers:

  • skobbler (now Telenav) has an SDK which is able to render maps & display turn by turn navigation on your Android phone. It also supports offline mode. Check out their developer platform for details
  • OsmSharp also does map rendering and turn by turn navigation. You can pull their code from github
  • MapQuest has a nice map & routing engine for Android. I think you could also use their routing service with Mapbox maps (see this as a starting point). I don't think they can do offline mode
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文