Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. 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

First of all, I hope this question isn't too basic, obvious or inappropriate for this forum. I'm very new to using map data. I'm working on a project on more accurate map routing using Matlab.

My question is:

I'm getting data from Google Map but how can I retrieve it to Matlab and plotting it?

share|improve this question
How are you getting the data from a google map? Is it a kml file? A quick google search turned up this function to read in kml files into MATLAB, – Andy W Mar 21 '12 at 12:08
Can I retrieve it directly from the google map using html?? And how to use this file? I never use this before! – Kim Mar 21 '12 at 13:16
Not that I'm aware (perhaps you can scrape it, I'm not sure offhand though). This other question (and the answers) may be helpful as well, Generate a kml file from Google results. What data are you trying to get from the google map? – Andy W Mar 21 '12 at 13:23
I only want data that can read on the matlab program and I can plot and route the data I want. Lastly export to kml file. – Kim Mar 21 '12 at 15:53
So you want the begin and end coordinates for some route I suppose (or do you want the entire line for a route)? "I only want data that can read on the matlab program" doesn't make any sense, what data do you specifically want. I suspect whatever you want is possible, but I have no idea if a MATLAB program is already written to get it. Take a look at this program written for Stata and see if that is similar to the information you would like to get for your project. – Andy W Mar 21 '12 at 17:27

Google T&C doesnt allow to read the satellite images using any external tools. It doesnt matter if you do it with or without google's knowledge. Its illegal. you can take a screenshot of the satellite maps from browser but then its an digital image not a Geospatial data. you wont have any spatial information from it. KML/KMZ gives you data in vector format

share|improve this answer

You can use the google maps API, then you just need to convert the JSON output to something you can conveniently work with.

Note however, that the terms of google specifically mention that you are only allowed to use this when you want to present the result as a google map!

share|improve this answer

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.