Rank: 372 based on 246 downloads (last 30 days) and 1 file submitted
photo

Zohar Bar-Yehuda

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Zohar
Updated   File Tags Downloads
(last 30 days)
Comments Rating
10 Apr 2014 Screenshot plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda plot, google, map, mapping, wgs, wgs84 246 72
  • 5.0
5.0 | 37 ratings
Comments and Ratings by Zohar View all
Updated File Comments Rating
13 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Gary - works fine here without a key. Maybe it depends on your IP which is treated differently by Google for some reason.
Anyway, obtaining an API key and setting it is a matter of minutes, and would probably solve your problem.

02 Jul 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Shatrughan - awesome tip. I will try to integrate it into the script soon.

29 Jun 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

pietro - that would be quite tricky, as it also depends on your screen size etc.
I wanted to add a scale indicator at the bottom of the map, but never got to it. Hope to add it sometime...

23 Jun 2014 Absolute Orientation - Horn's method Solves weighted absolute orientation problem using Horn's quaternion-based method. Author: Matt J

10 Jun 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda

Jorge - working with tiles has its upsides (you can choose the resolution you want, possibility for local caching etc.), but will make the code much more complicated and slower to run since it will require several images to be downloaded for every map you want to display.
I don't have plans to get to it in the near future...
I don't plan

Comments and Ratings on Zohar's Files View all
Updated File Comment by Comments Rating
28 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda wiwi

Hi Zohar, this code does not work for me. It displays only the lat and long nodes. I have an error "Warning: Unable to download map form Google Servers.\nPossible reasons: no network connection, or quota exceeded (1000
map requests per day).
> In plot_google_map at 186"

I'm using Matlab2014a. Please help me!!! thanks

14 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Gary

Interesting - worked just fine on a different computer. Sorry of for the false alarm.

13 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Bar-Yehuda, Zohar

Gary - works fine here without a key. Maybe it depends on your IP which is treated differently by Google for some reason.
Anyway, obtaining an API key and setting it is a matter of minutes, and would probably solve your problem.

13 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Gary

Did Google just change something that broke this? The code-generated URL states that a API key is required, but the link you provided in get_google_map for obtaining a key says that keys aren't needed anymore.

13 Aug 2014 plot_google_map Plot a google map on the background of the current figure using the Static Google Maps API. Author: Zohar Bar-Yehuda Mevlut

Great work Zohar. I've one question:
If you use this code:

lat = [48.8708 51.5188 41.9260 40.4312 52.523 37.982];
lon = [2.4131 -0.1300 12.4951 -3.6788 13.415 23.715];
plot(lon,lat,'.r','MarkerSize',20)
plot_google_map

How do the plot_google_map know to use the variables lat and lon?
I've tried with 4 variables:

latR= [1 2 3 4]
lonR = [1 2 3 4]
latG =[1 2 3 4]
long = [1 2 3 4]
hold on, plot(lonR,latR,'.r','MarkerSize',20)
hold on, plot(lonG,latG,'.g','MarkerSize',10)
plot_google_map

It works perfectly!! BUT, how do the function plot_google_map know it to take that 4 variables?

Great work, thank you
MEvO

Contact us