Bing Maps API Setup

Before you can use Bing Maps API in Dynamics Business Central to calculate geodata and display Bing Maps in the browser, you must fill in the necessary fields in the Bing Maps API Setup page.

To set up Bing Maps API

  1. Click the icon, enter Bing Maps API Setup, and select the relevant link.
  2. Click Insert Default API URLs to create a default Route API URL and default Location API URL.
  3. Fill in the API key field that is obtained from Microsoft Bing Maps.
  4. Fill in the Show Distance In field by selecting whether the routes and direct distances in the Redistribution Matrix are measured in kilometers or miles.
  5. Fill in the Show Duration In field by selecting whether the route durations in the Redistribution Matrix are measured in minutes or hours.
  6. Fill in the Route (Quickest/Shortest) field by selecting whether the route calculation should consider the quickest route or shortest route.
  7. Select the URL Encode Non-ASCII Chars check box, if required.

The fields listed below are necessary to set up the Bing Maps API integration:

Field Description
Route API URL This field defines the URL to get a driving route through a series of waypoints. A waypoint is a specified geographical location, defined by longitude and latitude, that is used for navigational purposes. This field can be populated from Insert Default API URLs action.
Location API URL This field defines the URL to get latitude and longitude coordinates that correspond to location information provided as a query string. This field can be populated from Insert Default API URLs action.
API Key This field is used to authenticate LS Central for the Bing Maps API usage. Refer to Microsoft Bing Maps for information on how to get a Bing Maps API Key.
Show Distance In This field defines whether the route and direct distances should be shown in kilometers or meters.
Show Duration In This field defines whether the route duration should be shown in minutes or hours.
Route (Quickest/Shortest) This field tells the system whether to use the quickest or shortest route for calculation.
URL Encode Non-ASCII Chars This field tells the system whether the URL is Non-ASCII encoded.

See also

Geodata Calculation