Gil wrote:

> Here is a link to the map:
> http://maps.google.com/maps?f=d&source=s_d&saddr=...
>
> As you can see, there are to points and a route between them.
> I want to know if I will take a third point, would I will be able to
> tell if it on this segment?
>
> I will try to explain my needs better:
> I want to save every route in the city as two points that I know that
> there is a route between them. I want to be able to decide if a third
> point I'm getting is on which segment.
> (I know for sure that the point is on some street and because I'm
> dividing all the streets to routes,so the point is definitely on 1 of
> my routes).

If I'm not mistaken, Google Maps exports a route as a set of lat/lon
coordinates (XML or the like). In your example, you would have
something like this:

  32.093114,34.781502
  32.093419,34.781460
  32.093765,34.780505

I'm not an expert, but Cartesian 2d logic should have some geometric
function to check wheter a given point lies on a straight line. In
your example, that function would need to be executed twice.

Hope this helps,

--
 Bart

-- 
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