> I want to know the basic concepts how to do geo fencing and coding in > google maps api. it should also be the route the geo fence > for the school bus. Kindly guide.
First determine your "allowed" route as a series of lat/long pairs defining a line. Google won't know your school bus route. You could gather the data by hand drawing a polyline on a map. Next determine the current location of the bus. Google doesn't have bus tracking features, so you'll need to look into how you can track it (or track some passengers mobile phone perhaps?) Now find the distance between the bus location and your route line. There are algorithms to do that. If the distance is more than X metres, send your alert. You might need to add in something to check the time/day and see if the bus should be en route at all, no point alerting in the night? None of that need involve Google Maps at all, it can be done with simple algorithms. You certainly can use maps to display the action, but I would not recommend starting a new project using v2 API (this group) but instead use v3 API, supported in the group at http://groups.google.com/group/google-maps-js-api-v3 -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
