List of Bingmaps tile server sub domains?

Paul Edison 0 Reputation points
2023-04-27T11:56:09.9266667+00:00

Dear all,

Is there somewhere a list of the Bing Maps sub-domains?

When using the Bing Maps - REST Services - Imagery – API

The URL for the images are of the following pattern:

http://ecn.{subdomain}.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=13563

For the specific location I would do:

https://dev.virtualearth.net/REST/v1/Imagery/Metadata/{imagerySet}/{centerPoint}?orientation={orientation}&zoomLevel={zoomLevel}&include={ImageryProviders}&key={BingMapsKey}

and receive e.g.:

http://ecn.t2.tiles.virtualearth.net/tiles/a0212300302.jpeg?g=13563

This works fine in principle fine, but now working with a proxy I would now have to include an exception for that subdomains to allow access to them.

Unfortunately I do need to know them -> as the proxy does NOT allow wildcards
(e.g.: all subdomains for tiles.virtualearth.net -> *.tiles.virtualearth.net)

In fact is there a list of all the {subdomain}

Kind Regards,
Paul

Ref: https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
719 questions
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 18,071 Reputation points Microsoft Employee
    2023-04-27T23:44:32.22+00:00

    The primary place the subdomains are published is through the Bing Maps Imagery Metadata data service https://learn.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata Note that it is possible that different Bing Maps tile servers will have different subdomains, and subdomains may change over time. That said, they have been (t0, t1, t2, t3) for nearly a decade now.

    Note, when directly accessing Bing Maps tiles, the terms of use require calling the imagery metadata service at the start of a user session to ensure the latest tile servers are used and to track usage for billing purposes. That said, if you are simply proxying the tile requests being made from a Bing Maps map control, that will already be doing this behind the scenes and there is no need to do this again.

    With the above in mind, I recommend you consider one of the two options below:

    1. Add monitoring to your app that checks for failed tile requests. If a certain number of tiles fail within a period of time, try calling the imagery metadata service to get updated subdomains. If that call fails it could be an issue with your account, or the service is down. I would have the service raise an alert in the logs. If it is successful and the subdomains are the same, it's possible there is just an issue with the tile servers. Again raise an alert in your logs so your support team can investigate.
    2. Hardcode the subdomains in your app. If you have documentation for maintaining your app for whomever will be supporting it, make a not about this and link to the imagery metadata service docs. With this approach, if the service ever change the subdomains your proxy will likely have issues and an update will be needed. This option requires a lot less work, but has more potential for future headaches if something changes.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.