Bookmark this page: Add fit point polyline onto nearest street to Yahoo MyWeb Add fit point polyline onto nearest street to Google Bookmarks Add fit point polyline onto nearest street to Windows Live Add fit point polyline onto nearest street to Del.icio.us Digg fit point polyline onto nearest street! Add fit point polyline onto nearest street to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by busnet on June 24, 2007, 10:05 am
Hi all.

I want to simulate a bus network in a network simulation software
(called SUMO).
For the placement of bus stops I plan to use google maps/earth to ease
up the
process and have a nice GUI. That way I get some placemarks.
I would need to "convert" that data into the SUMO format (XML). My
current idea is to
convert coordinates and than compute which is the nearest street and
place the
bus stop at that street.
But as coordinates are not always absolutely correct, this might lead
to errors.
A better idea would be to have the placemarks alongside a polyline
(=bus line)
and try to match this polyline with the according streets in sumos XML-
network.

See this example on how to get the polyline:
http://www.econym.demon.co.uk/googlemaps/examples/snappathdrag.htm
(klick somewhere, it will put a placemark, klick somewhere else it
will draw a
polyline alongside the shortest route to get there).

Do you have any ideas on how to fit that polyline to the existing XML
network and convert
the placemarks to bus stations?

Any help is appreciated.

Gerrit