Convert your routes that you made in Google My Maps to GPX so that you can view them on Garmin GPS devices, or upload them to MapMyRide.
Access your My Map. Your My Map must have lines or routes in it. It appears that a My Map with only points doesn’t convert correctly. Click on [...]
Convert your routes that you made in Google My Maps to GPX so that you can view them on Garmin GPS devices, or upload them to MapMyRide.
- Access your My Map. Your My Map must have lines or routes in it. It appears that a My Map with only points doesn’t convert correctly.
- Click on View in Google Earth. Your web browser will download a KML file. It may automatically open in Google Earth, but this is not necessary.
- Visit GPS Visualizer to convert your KML file to GPX
- Select GPX as your output.
- For the input, choose the KML file you just downloaded from Google My Maps.
- Click Convert. Your file will be uploaded and your GPX file will be presented for download on the next page.
- Download your GPX file from the link on the page.
You can now transfer the GPX file to your GPS device, or upload it to MapMyRide. I confirmed that MapMyRide successfully imports the Google My Map I converted following these instructions.
A reader asked where they could get Chicago Transit Authority (CTA) data I didn’t already have on the “Find GIS data” page. I only had shapefiles for train lines and stations. Now I’ve got bus routes and stops.
You can download General Transit Feed Specification (GTFS) data from the CTA’s Developer Center. It’s [...]
A reader asked where they could get Chicago Transit Authority (CTA) data I didn’t already have on the “Find GIS data” page. I only had shapefiles for train lines and stations. Now I’ve got bus routes and stops.
You can download General Transit Feed Specification (GTFS) data from the CTA’s Developer Center. It’s updated regularly when service changes.
Screenshot from ESRI ArcMap showing the unedited shapes.txt file loaded via Tools>Add XY Data. Shapes.txt is an 18 MB comma-delimited text file with thousands of points that can be grouped together with their shape_id.
The GTFS has major benefits over providing shapefiles to the public.
- It can be easily converted to the common shapefile format, or KML format.
- Google, the inventor of GTFS, has defined and documented it well; it is unencoded and plaintext. These attributes make it easy for programmers and hackers to manipulate it in many ways. (see also item 4)
- Google provides a service to the public on its website, an easy to use and robust transit planning service.
- The data is stored as plaintext CSV files.
- While an agency like CTA may have a geodata server on its intranet, it is less likely it has the addons that provide mapping and geodata services for the internet. A server like Web Mapping Service, or ArcIMS. These systems can be expensive to purchase and license. And we all know how the CTA seems to always be in a money crunch. While the CTA updates its GTFS data for publishing to Google Maps, the public can download it simultaneously to always have up-to-date information, providing the same geodata that ArcIMS or WMS would offer but for no additional cost.
I couldn’t have pulled off this conversion in 24 hours without the help of Steven Romalewski’s blog, Spatiality. He pointed me to the right ArcMap plugin in this post about converting the Metropolitan Transportation Authority’s GTFS data into shapefiles. I hope Steven doesn’t move to Chicago less my authority on GIS and transit be placed in check!
Make your own map of the CTA train routes and perform some kind of analysis – then share it with the rest of us!
Read more about my exercise in geodata conversion in the full post. Continue reading »
This tutorial will teach how you to convert any transit agency’s General Transit Feed Specification (GTFS) data into ESRI ArcGIS-compatible shapefiles (.shp), KML, or XML. This is simple to do because GTFS data is essentially a collection of CSV (comma separated values) text files (really, really large text files).
Note: I don’t know how to [...]
This tutorial will teach how you to convert any transit agency’s General Transit Feed Specification (GTFS) data into ESRI ArcGIS-compatible shapefiles (.shp), KML, or XML. This is simple to do because GTFS data is essentially a collection of CSV (comma separated values) text files (really, really large text files).
Note: I don’t know how to do the reverse, converting shapefiles or other geodata into GTFS data. I’m not sure if this is possible and I’m still investigating it. If you have tips, let me know.
Converting GTFS to GIS shapefiles
Instructions require the use of ArcGIS (Windows only) and a free plugin called ET GeoWizards GIS for any version of ArcGIS. I do not have instructions for Mac users at this time.
I wrote these instructions while converting the Chicago Transit Authority’s GTFS files into shapefiles based on a reader’s request. “Field names” are quoted and layer names are italicized.
- Download the GTFS data you want. Find data from agencies around the world (although not many from Europe) on GTFS Data Exchange.
- Import into ArcGIS the shapes.txt file using Tools>Add XY Data. Specify Y=lat and X=lon
- Using ET GeoWizards GIS tools, in the Convert tab, convert the points shapefile to polyline.
- Select the shapes layer in the wizard, then create a destination file. Click Next.
- Select the “shape_id” field
- Click the checkbox next to Order and select the field “shape_pt_sequence” and click Finish.
- Depending on the number of records (the CTA has 466,000 shapes), it may take a while.
- The new shapefile will be added to your Table of Contents and appear in your map.
- Import the trips.txt and routes.txt files. Inspect them for any NULL values in the “route_id” field. You will be using this field to join the routes and trips table. It may be a case that ArcGIS imported them incorrectly; the text files will show the correct data. If NULL values appear, follow steps 10 and 11 and continue. If not, follow steps 10 and 12 and continue. This happens because ArcGIS inspected some of the data and determined they were integers and ignored text. However, this is not the case.
- Export the text files as DBF files so that ArcGIS operates on them better. Then remove the text files from the Table of Contents.
- (Only if NULL values appear) Go into editing mode and fix the NULL values you noticed in step 9. You may have to make a new column with a more forgiving data type (string) and then copy the “route_id” column into the new column. Then continue to step 12.
- Join routes and trips based on the field “route_id” – export as trips_routes.dbf
- Add a new column to shapes.shp called “shape_id2″, with data type double 18, 11. This is so we can perform step 14. Use the field calculator to copy the values from “shape_id” (also known as ET_ID) to “shape_id2″
- Join routes_trips with shapes into routes_poly based on the field “shape_id” (and “shape_id2″)
- Dissolve routes_poly on “route_id.” Make sure all selections are cleared. Use statistics/summary fields: “route_long,” “route_url.” Save as routes_diss.shp
- Inspect the new shapefile to ensure it was created correctly. You may notice that some bus routes don’t have names. Since these routes are well documented on the CTA website, I’m not going to fill in their names.
Click on the screenshot to see various steps in the tutorials.
Converting GTFS to KML
After you have it in shapefile form, converting to KML is easy – follow these instructions for using QGIS. Or if you want to skip the shapefile-creation process (quite involved!), you can use KMLWriter, a Python script. Also, I think the latest version of ArcGIS has built-in KML exporting.
Converting GTFS to XML
If you want to convert the GTFS data (which are essentially comma-separated value – CSV – files) to XML, that’s easier and you can avoid using GIS programs.
- First try Mr. Data Converter (very user friendly).
- If that doesn’t work, try this website form on Creativyst. I tested it by converting the CTA’s smallest GTFS table, frequencies.txt, and it worked properly. However, it has a data size limit. (User friendly.)
- Next try csv2xml, a command line tool. (Not user friendly.)
- You can also use Microsoft Excel, but read these tips and caveats first. (I haven’t found a Microsoft application I like or think is user friendly.)
About Steven Can Plan
I started this blog in 2007 as the writing assignment for an introductory urban planning class at UIC. It's about cities (mainly Chicago), GIS oftentimes, and transportation (mainly bicycling). Learn more about me, Steven Vance. I also write for Streetsblog Chicago.
Steven Can Plan is hosted on Dreamhost.
Chicago Bike Map App

The Chicago Bike Map app is a bike and street map stored entirely in your iOS device – no data connection required. The map is designed to look much like the City of Chicago's official printed and online bike map. The app works on iPhone, iPod touch, and iPad.
- Download from the iTunes Store
- Demo the app online
- On iOS, search for "chicago bike map" in the App Store app
Highly Recommended Bike Products

So far I haven't had a flat with this tire. I've used Continental Gatorskin and Panaracer T-Serv, both of which have had flats (same Chicago streets). The Gatorskin has less tread than both, and wears to a slick surface faster.

Brooks B67 leather sprung saddle
So far my longest trip was 40 miles on this saddle. It molds to your butt like Birkenstock sandals mold to your feet. The springs make the bike ride a little more comfortable and more fun (weird, because you bounce up and down on them). It also looks gorgeous. Comes in 3 colors - I got black.

Detours Toocan utility pannier
I've used this pannier to carry groceries, books, my laptop, clothing, anything. I like it because it's stylish (but also "normal" looking at the same time), stands up on its own, is extremely durable, and has the most universal attachment system: two hooks.
Advertisement
Books

The Death and Life of Great American Cities (50th Anniversary Edition) (Modern Library) by Jane Jacobs

Making Maps: A Visual Guide to Map Design for GIS by John Krygier PhD, Denis Wood PhD
If you are going to make a map, whether it be hand drawn or digital, you should really give this book a read. Then read it every time you make a map. It will help make sure your maps are laid out sensibly, in a way that others can easily read, and that it doesn't include fluff or unnecessary data.

The Practice of Local Government Planning (Municipal Management Series) by
You could basically design and administer a new town kind of effectively after reading this huge and boring textbook.

Joyride: Pedaling Toward A Healthier Planet by Mia Birk, With Joe (Metal Cowboy) Kurmaskie, Joe Kurmaskie, Jim Moore
I met Mia Birk in October 2011.
Transit & Transportation








