Paul Peelen
Paul Peelen

Reputation: 10329

Train track route using Google Maps

I am wondering if it is possible to create a route on a map using a train track. I know its possible over normal roads.

Upvotes: 3

Views: 3406

Answers (3)

Mugunth
Mugunth

Reputation: 14499

iOS 4 introduces some new features like MKOverlay which can overlay circles, polygons onto a mapview. You might try this for drawing on the map.

Upvotes: 0

Marcelo
Marcelo

Reputation: 9407

It's certainly possible. (Broadly speaking, everything is possible) :-)

The first thing you'd need is data on the location of the railroad tracks. For the US, Canada and part of Europe this is publicly available as shapefiles, for example at: http://www.lib.unc.edu/reference/gis/datafinder/index.html?search_type=show_category_contents&datalayers=1&category_id=109

Once you obtained the shapefiles all options are open. You can convert the lines to google.maps.polyline() objects, (or GPolyline() if you're using V2 of the API), and load them on a map. It will all depend on what you want to achieve and what server side languages you're using. Getting rail directions is a completely different matter. :-)

Marcelo.

Upvotes: 1

zwippie
zwippie

Reputation: 15515

It's available in the following regions: Google Transit

Upvotes: 0

Related Questions