It's called 'geo-fencing', but make sure your intended use complies
with the Terms of Service of the Google Maps API.

You'd need to define your route, then create a polygon around it in
which the vehicle is allowed to be, and every time you get an update
on the position of the vehicle do point-in-polygon analysis to see if
the vehicle is inside or outside the polygon.

--
Marcelo - http://maps.forum.nu
--



On Sep 7, 5:30 am, Ant_Magma <[email protected]> wrote:
> Hi guys...we are developing a GPS tracking solution for an academic
> project...the system simply refreshes the latest GPS position of an
> asset on Google Maps...
>
> Since we are able to set and save driving directions on Google Maps,
> is it possible to restrict the travel path of that asset to a pre-
> saved route/direction?
>
> The idea is to have the system prompt an alert whenever the asset
> travels an illegal route, ie: the GPS lat/lon received is doesn't
> match the route/direction lat/lon
>
> How would the approach be? Using reverse geocode to convert the saved
> directions into lat/lon and compare to the received gps data on every
> instance?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to