blosm icon indicating copy to clipboard operation
blosm copied to clipboard

Suggestion: add Bing Maps Aerial overlay

Open douglasb78 opened this issue 4 years ago • 7 comments

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

douglasb78 avatar Aug 28 '20 05:08 douglasb78

Thank you, I'll add it in the coming weeks.

vvoovv avatar Aug 28 '20 09:08 vvoovv

I am also seeking for the same thing. because it's getting data only from OSM.org.

ghost avatar Sep 03 '20 13:09 ghost

More information: https://docs.microsoft.com/en-us/bingmaps/rest-services/directly-accessing-the-bing-maps-tiles

vvoovv avatar Apr 16 '21 08:04 vvoovv

Thank you, I'll add it in the coming weeks.

Has this been addressed yet?

LinusWalden avatar Jan 24 '22 00:01 LinusWalden

Has this been addressed yet?

No. Sorry for that.

vvoovv avatar Jan 24 '22 14:01 vvoovv