Skip to main content
Skip table of contents

Operation: CreateBingURL


CreateBingURLBing Maps

Input

When using the CreateBingURL operation, the adapter expects an XML input document that defines the URL part of the Bing Static Maps API in the Path element and the map section to be created in various Param elements. A parameter with attribute name="mapSize" contains the pixel dimensions of the map section to be created.

Sample input

XML
<BingMaps>
  <Path>Imagery/Map/Road/Routes</Path>
  <Param name="mapSize">640x640</Param>
  
  <Param name="wp.0">
    Seattle,WA;64;1
  </Param>

  <Param name="wp.1">
    Redmond,WA;66;2
  </Param>
</BingMaps>

For more information on creating and formatting Bing Maps map cutout graphics, see Bing Static Map API at https://msdn.microsoft.com/en-us/library/ff701724.aspx.

Output

For the operation CreateBingURL an XML document will be output that contains a URL for a Bing Maps map section that corresponds to the input. The outputFormat is passed to the o parameter in the URL.

XML
<HREF>
https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/RoutesmapSize=640%2C640&amp;wp.0=Seattle%2CWA%3B64%3B1&amp;wp.1=Redmond%2CWA%3B66%3B2&amp;key=AjGQcOkb94CdwAWZxnYndqRtpQRj7_Vmy4FDZoho2zyfHfyAcsDHxuaDLMpprFm&amp;o=xml
</HREF>
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.