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
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
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:
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