pubnub / eon-map

Realtime maps with PubNub and MapBox.
https://www.pubnub.com/developers/eon/
MIT License
135 stars 51 forks source link

Approximate the lo #8

Closed nikhilbansal closed 7 years ago

nikhilbansal commented 8 years ago

I have a set of latitude and longitude with their timestamps at which they were captured. I wish to animate a vehicle on the map using these data points. Is there any way to correct the location to the nearest road if the location is a bit away from the road ?

ianjennings commented 7 years ago

You might be able to use Mapbox streets to do this? https://www.mapbox.com/vector-tiles/mapbox-streets-v7/

You would use the transform callback to edit the lat/long of the marker (and move it onto the road) before it was rendered.