This is a migrated thread and some comments may be shown as answers.

How to use BingRouteProvider

5 Answers 105 Views
Map
This is a migrated thread and some comments may be shown as answers.
Mapi
Top achievements
Rank 1
Mapi asked on 26 Jul 2010, 10:15 AM
Hello everyone,

I would like to know if someone could explain to me how to use the BingRoutProvider class, in order to display a route between to points on a RadMap object?

Thanks a lot.

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Jul 2010, 07:49 AM
Hello Mapi,

As a base you can use the Routing example of the demo application. It allows specifying points by mouse click and it builds route according to these points.
The source code of this example is located in the following path:
C:\Program Files\Telerik\RadControls for WPF Q2 2010\Demos\Examples\Map\WPF\Routing\

Sincerely yours,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mapi
Top achievements
Rank 1
answered on 29 Jul 2010, 07:56 AM
Thanks a lot for your answer! This will be really helpfull.

Regards,

Mapi
0
Mapi
Top achievements
Rank 1
answered on 29 Jul 2010, 12:49 PM
I have succeded in using the BingRouteProvider and it works very well :)!

I have now an other question: my final purpose is to use a RouteProviderBase which would work with Map24, and I do not really know how it works! I guess I have to implement the CalculateRouteAsync(RouteRequest request) method but I do not really know how.

Thanks for your help!
0
Andrey
Telerik team
answered on 30 Jul 2010, 11:48 AM
Hi Mapi,

Creation of the custom routing providers is not so easy and straightforward as creation of custom map tile provider. There are many things you have to do there. You definitely should implement CalculateRouteAsync method. This method should process request parameters and pass them to the Map24 routing service. When the service responds to your request, you should process service data, put it into the RouteResponse object and call protected method RouteProviderBase.OnRoutingCompleted.

Unfortunately we cannot provide you with precise instructions how you should call Map24 routing service as we haven't used it in practice but it looks like you can find more information on Map24 official API here.

Generally the implementation of Map24 routing provider is not in our plans for Q3 2010 and it does not seem to be a trivial one. We will make sure it is reconsidered when discussing our future plans, but we cannot commit a specific timeframe at the moment.


All the best,
Andrey Murzov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Mapi
Top achievements
Rank 1
answered on 30 Jul 2010, 12:14 PM
Thank you for your help and your concern. I will try to implement it myself, but you are right it does not seem so easy.

Thanks a lot for your help.

Regards.

Mapi
Tags
Map
Asked by
Mapi
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Mapi
Top achievements
Rank 1
Share this question
or