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

Distance Calculation

3 Answers 111 Views
Map
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 13 Apr 2011, 08:50 AM
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

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 15 Apr 2011, 06:31 AM
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
0
Muhammad
Top achievements
Rank 1
answered on 15 Apr 2011, 07:52 AM
Yes your second option is correct. I need to calculate shortest street distance
0
Andrey
Telerik team
answered on 19 Apr 2011, 05:00 PM
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
Tags
Map
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or