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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.