mn-msta.com

General Category => General Banter => Topic started by: Tim... on April 28, 2012, 03:35:16 AM

Title: Google Maps
Post by: Tim... on April 28, 2012, 03:35:16 AM
Does anyone know of a way to include the turn-by-turn directions when exporting a Google route to a kml file?

Background:  Working on an ios application that will display the route on the "Maps" UI and in addition want to be able to display the driving directions, but it appears that the exported Google kml does not include directions.

PM me if you would like to collaborate.  Nothing commercial, merely an academic exercise on my part.
Title: Re: Google Maps
Post by: gely on April 29, 2012, 06:46:24 AM
I'm interested, but don't know ios. I'm a software engineer, but always on windows or embedded.
Title: Re: Google Maps
Post by: Tim... on April 29, 2012, 05:11:04 PM
The iOS SDK is only available on OS X.  If you have a C/C++ background, then Objective-C is pretty easy to pick up.  Some very good iOS lectures from Stanford at iTunes U.
Title: Re: Google Maps
Post by: Tim... on May 19, 2012, 08:36:50 AM
Ok finally figured out how to get turn-by-turn directions from a Google map into a KML file.  It is a bit convoluted, but very doable.  Turns out that "My Maps" exported KML files only contain waypoints and not directions, but creating a route from the "Get Directions" page and using GPSVisulizer.com to convert the Google map "link" to a KML file, directions are included.

So here is my indie iOS app that will display the turn-by-turn directions and also the route.  The app needs some tidying up, but the basic functionality is there.  Next step is to add "current location" tracking to the map.

Anyone interested in beta testing the app PM me.  Would love some feedback on function/features.

First screen lists all the KML files that have been uploaded to the device via iTunes sync
(http://i.imgur.com/DaM2k.png)

Turn-by-turn directions for the selected route
(http://imgur.com/MBs1i.png)

The route overlayed on the map
(http://i.imgur.com/fuGgm.png)
Title: Re: Google Maps
Post by: Chris on May 19, 2012, 10:16:38 AM
neat Tim!
Title: Re: Google Maps
Post by: Duc Man on May 19, 2012, 11:23:35 AM
cool..i'm an apple guy..i'b be interested in trying this
Title: Re: Google Maps
Post by: Aprilian on May 19, 2012, 03:27:38 PM
That looks very cool.   However, my personal experience of carrying my iPhone in the window of my tank bag is that it gets overheated by the direct sunlight and then shuts down to protect itself.
Title: Re: Google Maps
Post by: Chris on May 19, 2012, 08:27:39 PM
That looks very cool.   However, my personal experience of carrying my iPhone in the window of my tank bag is that it gets overheated by the direct sunlight and then shuts down to protect itself.

I use a RAM mount for mine it works great