dss91 / omgps

Automatically exported from code.google.com/p/omgps
0 stars 0 forks source link

Add a template to load google satellite images #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At the moment, there is no predefined tab to display Google satellite 
images.

This is one that works:

def GoogleSat():
    return "min-zoom=1; max-zoom=18; image-type=jpg"

def GoogleSat_url(zoom, x, y):
    return "http://khm1.google.com/kh?v=41&x=" + `x` + "&y=" + `y` + 
"&z=" + `zoom` + "&s="

... at least until one gets blacklisted by Google for downloading too much. 
Maybe it would be good to put a random delay into it plus maybe loadbalance  
over the servers 0-3.

Original issue reported on code.google.com by LudwigBr...@gmail.com on 18 Jul 2009 at 12:14

GoogleCodeExporter commented 9 years ago
Thanks :)

GoogleSat, not only blacklist but also distorts and offsets in Beijing,
GoogleMap, various offset (hundreds of meters).

The load-balancing can be implemented in map.py. But I doubt if it helps much.
Don't add delay to GoogleSat_url, because urls are prepared before actual 
downloading.

As of an open source project, I have to respect copyright and legal things.
I had difficult time to determine if I should add non open-sourced repositories.
I hope you can understand. So, GoogleSat is not planned to be added to omgps 
yet. 
And in the futhure, even google map and yahoo sat may be removed.

I'm sorry, but I can post your configuration (better with load-balancing) to 
FAQ.

Original comment by meng.qin...@gmail.com on 18 Jul 2009 at 4:58