Get Max Speed Limit of a road segment or streets Android

android, api, geolocation, gps, performance

Solution

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.

Problem

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.

Original source