Bing maps: Direct Access to tiles and Api key

12,588

Accessing tiles directly with key-based authentication can be accomplished like so:

Using the REST ‘Get Imagery Metadata’ service to obtain the tile URL format for the type of tiles you wish to display: http://msdn.microsoft.com/en-us/library/ff701716.aspx - For example, if you wish to display Road tiles, the following request could be used (taken from the above documentation): http://dev.virtualearth.net/REST/V1/Imagery/Metadata/Road?mapVersion=v1&output=xml&key=BingMapsKey

Within the response, the URL for tiles is returned, with a placeholder for the tile quadkey.

A new REST request should be issued each time the map viewer in the application is instantiated, or whenever the map type is changed (eg. You wish to switch to aerial or hybrid map style)

Your platform usage can then be tracked based on the calls to the REST service.

Share:
12,588
Admin
Author by

Admin

Updated on June 09, 2022

Comments