Great thanks for the prompt reply Marcello, and apologies for the lack of clarity.
Let me rephrase the problem. A "point" means geographical coordinate <lat,long> here. - Lets describe a Path as a set of say 50 points (which the GPS has collected over a few minutes in a moving vehicle) - Lets specify a point P (which is the gate of my house) Q: is there a Google Maps API call which can tell if P lies on the Path (i.e if the vehicle passed the road infront of my house's gate) Note that there are no visuals involved here, i.e I dont want my users to see a map. Also, you may say that I can simply calculate the distance of P from each point in the Path. Suppose it turns out that the point closet to P in the Path is 300m away. Now, without looking at any map, how can I tell if there is no other road between P and the Path? In the code, the call may look like: boolean isOnPath(Point[] path, Point aPoint) Hope this makes it clear. On Mar 18, 9:09 pm, Marcelo <[email protected]> wrote: > On Mar 18, 10:21 am, amarsh <[email protected]> wrote: > > > What is the nest way to find out if the vehicle has passed from > > infront of my house. > > You'll need to define that better. > Is "in front" of your house different from "behind" your house or > "beside" your house? > If not, then you can simply check distance from the vehicle to your > house. > > > Effectively, I need to find out if a point lies > > on the "geographic" path described by a set of points. > > What is a "geographic > path"?http://gis5.com/pois_along_route/gm_pois_along_route.phphttp://maps.forum.nu/gm_texas.html > > -- > Marcelo -http://maps.forum.nu > -- > > > > > > > Thanks > > Amarsh -- 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.
