I'm working on a project where we need to know the direction (compass) of a street. Actually, we only have a GeoPoint (lat;long and heading) we are planning on using reverseGeocoding to tell where is it (which street?); and then we 'd like to know if he's heading in the wrong way.
Google Maps, OSM, Mapquest they all display an arrow over the street which indicates its direction. I guess they draw them dinamically, so they have to know their angle. That's what I'd like to know (if possible)
Thanks in advance!
#EDIT:
I'm thinking maybe they cut the street into little pieces and then they said "this track of the street goes from (lat1;lng1) to (lat2;lng2)" that would give that track a direction, an so they can draw that arrow. Also not every street is a straight line, so its direction is not only one, it depends on which portion of the street you are in.