I'm looking for a method to obtain the distance and duration travel between two point.

Starting from two addresses, I need to geocode them in order to get the latitude and longitude of both addresses and then calculate the distance (in km) and the duration ( in minutes) after defining the start and end point.

There is a way to get this kind of information in C#??

Thanks Fabio

asked 07 Apr '15, 10:14

Fabio's gravatar image

accept rate: 0%

edited 11 Apr '15, 01:24

aseerel4c26's gravatar image

aseerel4c26 ♦

Do you want to do this offline/locally or is accessing an online API an option?

(07 Apr '15, 10:20) AddisMap_Ale...

It doesn't matter, but I need to repeat this process for a large number of addresses. @AddisMap_Ale...

(07 Apr '15, 10:24) Fabio
(08 Apr '15, 14:08) aseerel4c26 ♦

you mean a shortest? / fastest? route based on routing, don't you? See https://wiki.openstreetmap.org/wiki/Routing#Developers – libs and webservice APIs are available. If you use somebody's routing webservice you – of course – need to negotiate terms for your "large number of addresses" unless it is allowed by the service's usage policy.

permanent link

answered 08 Apr '15, 13:58

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 08 Apr '15, 14:07

... and about geocoding of addresses, see Search_engines

permanent link

answered 08 Apr '15, 21:38

stephan75's gravatar image

accept rate: 6%

Note: I guess the routing webservices would do the geocoding for the user.

(08 Apr '15, 23:45) aseerel4c26 ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Apr '15, 10:14

question was seen: 7,810 times

last updated: 11 Apr '15, 01:24

powered by OSQA