获取路段或街道的Andr​​oid的最高限速 [英] Get Max Speed Limit of a road segment or streets Android

查看:267
本文介绍了获取路段或街道的Andr​​oid的最高限速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有,我可以用它来从Android设备即得到我的当前位置的最大速度极限时,我的GPS定位(长LAT)指向任何路段或街道的任何API或Web服务。请指导我如何在我的Andr​​oid code来实现这个功能。

要创建的时候一个是超速它提醒的应用程序。我得到了我目前的速度,但没有最大速度,以配合。


解决方案

有许多开源API和支付,可用于这一目的。

付费:结果
 TomTom公司是一个很好的例子作为其许多其他任务,如对自己的离线地图导航庞大和非常广泛的API。

免费的:结果
Wikispeedia 是好的,但他们需要速度极限的回报有利于他们,或以其他方式访问数据库非常有限。找到限速最流行的方式是送纬度,经度是这样的:

  http://www.wikispeedia.org/speedlimit/geo4a.php?name=ALL&latlng=35.17545,-89.53372

候补wikispeedia是 OSM(开放街道地图)这是我在用的和我的伟大工程因为它返回的信息地狱。这样使用它,您将得到每一个信息:

<$p$p><$c$c>http://www.overpass-api.de/api/xapi?*[maxspeed=*][bbox=72.998251,33.670049,72.998451,33.670249]

您也可以使用它的维基更多的标签。

Is there any api or web service which i can use to get the max speed limit of my current location from android device i.e. when my gps location (long lat) point to any road segment or street. Please guide me how to implement this functionality in my android code.

Want to create an app which alerts when one is over speeding. I got the my current speed, but no max speed to match with.

解决方案

There are many open source API's and paid which can be used for this purpose.

Paid:
Tomtom is a good example as its a huge and very wide API for many other tasks as navigation over their own offline maps.

Free:
Wikispeedia is good but they require speed-limits in return as favor for them, or otherwise the access to the database is very limited. The most popular way to find the speed limit is to send lat, lon like this:

http://www.wikispeedia.org/speedlimit/geo4a.php?name=ALL&latlng=35.17545,-89.53372

Alternate to wikispeedia is OSM (Open Street Map) this is what i am using and works great for me as it returns you hell of information. Use it like this and you will get every information:

http://www.overpass-api.de/api/xapi?*[maxspeed=*][bbox=72.998251,33.670049,72.998451,33.670249]

You can also use its wiki for more tags.

这篇关于获取路段或街道的Andr​​oid的最高限速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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