Distance Calculation

4 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    35 posts
    Member since:
    Jun 2010

    Posted 13 Apr 2011 Link to this post

    Hi,
    I am working on an application where we need shortest distance between 2 addresses. I will provide one reference point and a collection of addresses against it. The map should return me the shortest distance address from the collection of addresses. Thanks
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 15 Apr 2011 Link to this post

    Hi Muhammad,

    Could you, please, clarify your question. Does the distance between 2 addresses mean straight distance between 2 points, or you'd like to calculate length of the shortest route between 2 addresses along the streets?

    Kind regards,
    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. Muhammad
    Muhammad avatar
    35 posts
    Member since:
    Jun 2010

    Posted 15 Apr 2011 Link to this post

    Yes your second option is correct. I need to calculate shortest street distance
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Apr 2011 Link to this post

    Hello Muhammad,

    You should call Bing routing service for every pair of addresses, and then use returned data to compare and calculate shortest distance. You can find routing example in our demo application:

    http://demos.telerik.com/silverlight/#Map/Routing

    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
Back to Top