How to use BingRouteProvider

6 posts, 0 answers
  1. Mapi
    Mapi avatar
    9 posts
    Member since:
    Jul 2010

    Posted 26 Jul 2010 Link to this post

    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.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 27 Jul 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mapi
    Mapi avatar
    9 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    Thanks a lot for your answer! This will be really helpfull.

    Regards,

    Mapi
  5. Mapi
    Mapi avatar
    9 posts
    Member since:
    Jul 2010

    Posted 29 Jul 2010 Link to this post

    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!
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 30 Jul 2010 Link to this post

    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
  7. Mapi
    Mapi avatar
    9 posts
    Member since:
    Jul 2010

    Posted 30 Jul 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready