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?

  • 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, mathworks.com/matlabcentral/fileexchange/13026-readkml. – 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


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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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