There is currently no way to obtain that information from the API, but
I suggested some possibilities about a similar question in tis thread:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/66c78a811f498a67/e39b71f984185736?lnk=gst&q=marcelo+small+near+ferry#e39b71f984185736

Since your area of coverage is small, what I would do is something
like this:

1. Obtain shapefiles of the outlines of Sweden and Finland.
You probably don't need every tiny island, but only the ones that have
roads on them.
2. Save the data to a convenient format, either in a SQL server with
spatial capabilities, (MySQL, PostGres), or as a plain text file on
the server.
3. When the GDirections response arrives, extract the polyline, make a
copy of the points reduving them to 4 or 5 decimals, and send those
points to the server in an asynchronous request.
4a. On the client, continue processing the response of the
GDirections.
4b. On the server, load the polygons you saved in step2 and perform
point-in-polygon analysis with each point of the polyline, recording
the index numbers of the points that fall outside of all polygons.
Those points  must be on water.
5. Return the indexes of those points to the callback function of the
asynchronous request and put them in an array.
6. From the callback function, start the animation and, on each point
of the animation check if thepoit's vertexIndex is in the array.
If yes, then change the icon to a boat, if not then chenge the icon to
a bycicle.

Of course, you need to ask yourself how much work is it worth doing
for changing an icon, just like I asked myself how much work is it
worth doing to answer a forum post. ;-)

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








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