[Routing] Help: how route through a collection of nodes?
Marcus Wolschon
Marcus at Wolschon.biz
Fri Mar 26 15:41:41 GMT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Camillo Anania schrieb:
> I want to: show that calculated path in some way, on OpenStreetMap
> or Google Maps. Actually I don't know how to indicate when a street
> is traversed different times, so I think that just highlight a path
> on a static map it's not enough. So I was thinking to attach to a
> static map with an highlithed path some driving information so I
> can fully show the path I calculated.
>
> Can I use Traveling Salesman to show that cyclical path? If yes,
> it's a good idea to use a static map with highlighted path and
> driving information?
Sure. Give your path to one of the renderers as the route and let it
render a sensible bounding-box around your path into a Graphics2D-object.
Doing that with one of the 2 renderers that download tiles as a
background could be done in maybe a dozen lines
of code and have no dependencies to anything but some very basic
interfaces.
It´s a trivial task and there is lots of code to do that. Nearly every
mobile phone application contains that
(as they usually don´t render themself.)
Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkus1bUACgkQf1hPnk3Z0cTs9gCgue8c+x7z0ZnvBHOzjkU8htKH
bPUAnjRFvfMQ8kU3D9SwMVPFBFxHSzOw
=5N0D
-----END PGP SIGNATURE-----
More information about the Routing
mailing list