blosm
blosm copied to clipboard
Suggestion: add Bing Maps Aerial overlay
By looking into Bing Maps Documentation I found out "http://dev.virtualearth.net/REST/V1/Imagery/Metadata/Aerial?mapVersion=v1&output=xml&key=**API_KEY_HERE**"
returns a base url and a list of subdomains (as of now: t0, t1, t2, t3) that can be used for accessing Bing Map tiles.
"http://ecn.{subdomain}.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=9008&mkt={culture}&shading=hill"
was the returned URL for me. Culture and shading parameters are optional. t0, t1, t2, t3 are used for load balancing.
By using this script it's possible to convert tile coordinates into quadkeys, which are used by Bing Maps:
@staticmethod
def tileToQuadKey(x, y, z):
index = ""
while (z > 0):
b = 0
mask = 1 << (z - 1)
if (x & mask):
b = b + 1
if (y & mask):
b = b + 2
index += str(b)
z = z - 1
return index
It has a lower resolution, but it might be an option not to contradict Google Maps terms of use and avoid having shadows. Google: http://mt.google.com/vt/lyrs=s&x=46777&y=76645&z=17 Bing: http://ecn.t0.tiles.virtualearth.net/tiles/a21031213212311203.jpeg?g=9008
Thank you, I'll add it in the coming weeks.
I am also seeking for the same thing. because it's getting data only from OSM.org.
More information: https://docs.microsoft.com/en-us/bingmaps/rest-services/directly-accessing-the-bing-maps-tiles
Thank you, I'll add it in the coming weeks.
Has this been addressed yet?
Has this been addressed yet?
No. Sorry for that.