routing not working
nuelle1605 opened this issue · 3 comments
server always returns: error 400 bad request
even though API key is valid
Hello,
Can you please tell me which SDK example you are using? Is it the Routing of RadMap? Also, can you list the steps to reproduce the issue?
Thank you,
Martin Ivanov
Technical Support Engineer
Hello Martin
basically I just followed the example at:
https://docs.telerik.com/devtools/wpf/controls/radmap/features/providers/bing-rest-map-provider/routing
`var aRequest = new BingRestRouteRequest();
aRequest.Culture = new System.Globalization.CultureInfo("sv-SE");
LocationCollection wayPoints = new LocationCollection();
foreach (var aStop in qStops)
{
if (aStop.MapLocation.HasValue)
wayPoints.Add(aStop.MapLocation.Value);
}
foreach (var point in wayPoints)
{
aRequest.Waypoints.Add(point.ToString());
}
aRequest.Options.RouteAttributes = BingRestRouteAttributes.RoutePath;
aRequest.DistanceUnit = DistanceUnit.Kilometer;
this._RouteProvider.CalculateRouteAsync(aRequest);`
error 400 bad request
Best regards
Alexander