Specifically for OSM, are you looking for a way using an OSM API or downloaded OSM data ?
–
Will.Apr 5 '13 at 18:54

@Will. I'm open to both, preferably be able to use the API; however, I have no issues whatsoever if I can download the data to myserver and use that
–
dassoukiApr 5 '13 at 21:27

from the OSM website (openstreetmap.org) you can always export the area of interest in XML and take out the info on the type of road and speed limit. but i am not sure this is how you want to do this.
–
A.RApr 6 '13 at 18:35

1 Answer
1

I will give you a method using downloaded OSM data, as the API is designed for editing and not for read-only. You will find more details on this on the API usage policy page of the OSM wiki. If you really want to use an API, you can look at the read-only APIs like the Overpass API. Several other methods could also work, depending on how you will use this data and which tools you like most.

Download OSM data for you area of interest. Use Geofabrik if the area is big, or the OSM website export tab if your area is small (a city or less).