Provided there are no issues with TOS / Tracking, you might try creating a 4-sided polygon between the two milestones. For example, if the two milestones are one above the other with a distance of 16 km, that is the polygon height. The width of the polygon is whatever you so desire on each side of the milestone points, i.e., 0.125, 0.25, 0.5, 1 km, etc. Then maybe something like this to test if a GPS coordinate is within the polygon:
var point = new google.maps.LatLng(52.05249047600099, -0.6097412109375); var polygon = new google.maps.Polygon({path: [INSERT_PATH_ARRAY_HERE]}); if (polygon.Contains(point)) { // point is inside polygon } On Mar 3, 2:12 am, ramkumar pinninti <ramkumar.pinni...@gmail.com> wrote: > Hi, > > We are developing a Person Tracking System.Persons travels on Train > daily with GPS Mobiles.All the Tacking data during the Train journey > is recorded on mobile and send to server. > > Suppose if i have GPS Positions of some fixed milestones along the > railway line.I have to filter out GPS coordinates which lies in > between any two milestones .Please give any suggestions. > > Thanks and Regards > > P.Ramkumar. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.