Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any tool or method in order to convert Google Map route, direction into array of lat/lon coordinates? What I am trying to do is to simulate NMEA sentences in order to test my application.

share|improve this question

migrated from superuser.com Nov 5 '12 at 20:01

This question came from our site for computer enthusiasts and power users.

You can play with the Google Maps API, or, if you're just interested in quickly finding the coordinates of the waypoints on a Google Map route, you can generate a .gpx file (in either Garmin or "generic" format) using this tool


The resulting .gpx file has the data you need, in decimal degrees of lat & long. According to the instructions, Google's free API limits to 10 waypoints. Note that I don't have affiliation with A. S. Buden (http://www.cgtk.co.uk/)

share|improve this answer

I found this video extremely helpful, the first part of it concerns your question. It shows you how you can plot a route on a map and then export it. The export will be in .kmz format but by changing the file extension to .zip and then unzipping it you will get the .kml file!



  • Sign into your google account/If you don't have one then you will need to create one to do it this way.

  • Go to google maps (https://maps.google.com/)

  • Under search bar click in "My maps" and then "Create"

  • Then again under the search bar click on "Draw a line" and choose any type of route you want

  • Find the area you want on the map, click once to set starting point.

  • Draw the route you want, and then double click to set ending point. (you can use single click to fix points within your route if it goes round weird corners and the path moves)

  • When you are happy with your route click on the 3 dots to the right of "Share" and select "Export to KML".

  • Change the option "Entire map" to just the route you have selected and then click "Download".

  • Even though it says it exports to .KML the file downloaded is .KMZ, so what you need to do is change the file extention to .ZIP and then you will find the .KML file inside the .ZIP file. Extract the .KML file from the .ZIP file.

  • Open .KML file with a text editor (Notepad++, CodeBlocks, ...) and you will find a tag (the one within tag if there is more than one) which will contain all the coordinates of your route.

share|improve this answer
Can you please summarize the video? If the video is taken down, then your answer loses its value – Sathya Mar 19 '15 at 9:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.