Google My Maps to GTFS shapes.txt converter

1,971 views
Skip to first unread message

Brandon Martin-Anderson

unread,
Aug 7, 2008, 2:25:03 PM8/7/08
to transit-d...@googlegroups.com
Hey Y'all,

Here's a tool which converts customized Google Maps into shapes.txt files. I made it last night.

http://bmander.com/makeshapes/

Does anyone know how to programatically get line coordinates from a driving directions URL? A driving directions -> shapes.txt converter would be useful also, for those who don't enjoy tracing streets by hand.

-B

Joe Hughes

unread,
Aug 7, 2008, 2:50:58 PM8/7/08
to transit-d...@googlegroups.com
Cool idea, Brandon, you're on a roll lately!

A word of warning: I'm not a lawyer, but I suspect that any data that
you traced off of Google Maps in this way might inherit IP
restrictions from Google's upstream data providers (Navteq, in the
example map you link to on that page). If you used the resulting
shape data in a non-Google-Maps application, Navteq could probably
come around and hit you up for cash and/or C&D you.

Maybe there's a way to do something similar but based on
OpenStreetMap? Or does that have IP restrictions that would keep you
from using it with Google Maps?

Joe

Brandon Martin-Anderson

unread,
Aug 7, 2008, 3:01:33 PM8/7/08
to transit-d...@googlegroups.com
Hey Joe,

It occurred to me halfway through implementing the converter that, strictly speaking, derivative works have IP problems. Whether, practically speaking, that's an issue for a couple of 5-route rural agencies, remains to be seen.

-B

Tom Brown

unread,
Aug 7, 2008, 3:04:44 PM8/7/08
to transit-d...@googlegroups.com
Try &output=kml
http://groups.google.com/group/googletransit/browse_thread/thread/08dc771ab6183e17
Watch out, I've noticed that sometimes it isn't exactly the same as what you see in the browser, maybe because it comes from a different data provider. As Joe says, there are potential legal issues but I can't provide any advice on that front.

On Thu, Aug 7, 2008 at 11:25 AM, Brandon Martin-Anderson <bad...@gmail.com> wrote:

Kieran Huggins

unread,
Aug 7, 2008, 3:58:30 PM8/7/08
to transit-d...@googlegroups.com
We've found that the API seems to use TeleAtlas, while Google Maps uses NavTeq, and the data is definitely different. TeleAtlas seems to have a lot more issues like reversed one-way streets and the like.

Depending on your usage (and the coverage in your area) OpenStreetMaps might be a better data source... and it's CC if I'm not mistaken.

Cheers,
Kieran

Ian Leighton

unread,
Apr 16, 2013, 4:47:40 PM4/16/13
to transit-d...@googlegroups.com
nice work Brandon!

Ian Leighton
Founder / Designer
Embark Inc. / www.letsembark.com

On Tuesday 16 April 2013 at 13:27 , Derived wrote:

You rock on many levels!
--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

rainerl...@gmail.com

unread,
Nov 14, 2014, 9:51:52 AM11/14/14
to transit-d...@googlegroups.com
Hi Brandon, cool tool,

but with your example URL it doesnt work (output=something went wrong)
even if I append &output=kml

Can you help?
Is the code for the tool somewhere online ,github or so?

Kind regards

Brian Ferris

unread,
Nov 14, 2014, 4:34:22 PM11/14/14
to transit-d...@googlegroups.com
I think Google My Maps has changed a bit since Brandon originally wrote his conversion tool.  Specifically, My Maps now has an explicit option for KML export (as opposed to tweaking the output link).  Unfortunately, I don't think Brandon's tool will work so well as result.

However, I whipped up a new KML => GTFS Shapes tool that should do the job:


It should work with any KML file, whether generated by Google My Maps, Google Earth, or even some non-Google product ; )  It runs right in the browser (assuming you have a reasonably modern one).  Please try it out and let me know if you have issues.

Thanks,
Brian

--
You received this message because you are subscribed to the Google Groups "Transit Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-develop...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dtippet...@gmail.com

unread,
Aug 14, 2015, 9:47:52 AM8/14/15
to Transit Developers
Brian -- Does your tool still work?  I just tried to convert a kml, but didn't get any shp.txt in the output window.
To unsubscribe from this group and stop receiving emails from it, send an email to transit-developers+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages