Bing Map Licensing Billable Question

ReplicaSistemi 1 Reputation point
2022-11-16T09:53:11.627+00:00

I have a question about counting BILLABLE transactions.
I made a single call via RouteRequest object (via BingMapsRESTToolkit) and it counted me 3 BILLABLE instead of 1 (see the image)

In the following link it says that only 1 transaction is counted when use RESTRoutes

https://learn.microsoft.com/en-us/bingmaps/getting-started/bing-maps-dev-center-help/understanding-bing-maps-transactions?redirectedfrom=MSDN

RESTRoutes -> Any time a Routes URL request is made to find a route, one (1) transaction is counted.

my code:

var request = new RouteRequest()
{
RouteOptions = new RouteOptions()
{
TravelMode = TravelModeType.Truck,
DistanceUnits = DistanceUnitType.Kilometers,
RouteAttributes = new List<RouteAttributeType>()
{
RouteAttributeType.RoutePath
},
Optimize = RouteOptimizationType.Time,
MaxSolutions = 1,
},
Waypoints = new List<SimpleWaypoint>()
{
new SimpleWaypoint(){
Coordinate=new Coordinate(Convert.ToDouble(routing.StartLatitude), Convert.ToDouble(routing.StartLongitude)),
Address = routing.StartFormattedAddress
},
new SimpleWaypoint(){
Coordinate=new Coordinate(Convert.ToDouble(routing.EndLatitude), Convert.ToDouble(routing.EndLongitude)),
Address = routing.EndFormattedAddress
},
},
BingMapsKey = bingMapsKey,
Culture = lang,
};

var response = await request.Execute((remainingTime) =>
{
if (remainingTime > -1)
{
//working...
}
});

260914-senza-nome.jpg

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

1 answer

Sort by: Most helpful
  1. rbrundritt 18,791 Reputation points Microsoft Employee
    2022-11-18T15:32:44.927+00:00

    A truck routing request generates 3 billable transactions. It's listed in that document you linked to:

    261981-screenshot-2022-11-18-073132.png

    1 person found this answer helpful.
    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.