Page 1 of 2   1 2 > last >>
Bookmark this page: Add Road distance to Yahoo MyWeb Add Road distance to Google Bookmarks Add Road distance to Windows Live Add Road distance to Del.icio.us Digg Road distance! Add Road distance to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Luis Quesada on May 10, 2010, 11:03 am


Dear all,
Is there a way of computing the *road* distance (i.e., the distance
that you would travel if you were to use the road network) between two
GPS coordinates automatically (e.g., from Python using)?
Cheers,
Luis

Posted by Happy Trails on May 10, 2010, 11:25 am


On Mon, 10 May 2010 08:03:23 -0700 (PDT), Luis Quesada

>Dear all,
>Is there a way of computing the *road* distance (i.e., the distance
>that you would travel if you were to use the road network) between two
>GPS coordinates automatically (e.g., from Python using)?
>Cheers,
>Luis

You can do that with Google Maps.


Posted by Luis Quesada on May 11, 2010, 4:53 pm


Happy Trails wrote:
> On Mon, 10 May 2010 08:03:23 -0700 (PDT), Luis Quesada
>
>> Dear all,
>> Is there a way of computing the *road* distance (i.e., the distance
>> that you would travel if you were to use the road network) between two
>> GPS coordinates automatically (e.g., from Python using)?
>> Cheers,
>> Luis
>
> You can do that with Google Maps.
>

Indeed, but I don't want to introduce all those queries manually!
Let me quote the answer that I got from Alex Ezell in another mailing
list (in case somebody is interested):

======================================================================
Hi Luis,
I've not done it in Python directly, but I have done it using the
Directions API (AJAX) that Google Maps provides. You basically are
asking for directions between the two points, but what you really care
about is the distance value that the API returns.

Would that work for you?

Alex
======================================================================

Cheers,
Luis

Posted by claudegps on May 12, 2010, 5:51 am


> Happy Trails wrote:
> > On Mon, 10 May 2010 08:03:23 -0700 (PDT), Luis Quesada
> >> Dear all,
> >> Is there a way of computing the *road* distance (i.e., the distance
> >> that you would travel if you were to use the road network) between two
> >> GPS coordinates automatically (e.g., from Python using)?
> >> Cheers,
> >> Luis
> > You can do that with Google Maps.
> Indeed, but I don't want to introduce all those queries manually!
> Let me quote the answer that I got from Alex Ezell in another mailing
> list (in case somebody is interested):
> ======================================================================
> Hi Luis,
> I've not done it in Python directly, but I have done it using the
> Directions API (AJAX) that Google Maps provides. You basically are
> asking for directions between the two points, but what you really care
> about is the distance value that the API returns.
> Would that work for you?
> Alex
> ======================================================================

Of course you can access Gmaps API from python and do the queries
automatically.
You need an API key (free, after registration). The free key has some
limitations in terms of number of queries.

I did a similar thing using google maps API to do some reverse
geocoding.
You may also have a look a geopy.

I'm interested, if you want we can share infos/code. (I did my project
for personal use...)





Posted by user on May 10, 2010, 1:35 pm


Luis Quesada wrote:

> Dear all,
> Is there a way of computing the *road* distance (i.e., the distance
> that you would travel if you were to use the road network) between two
> GPS coordinates automatically (e.g., from Python using)?
> Cheers,
> Luis


use some maps, use

http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm

a nice job ;-)


Pay the copy rights to the Greek, they forgot to take patents on
mathematics!


--
--
What's on Shortwave guide: choose an hour, go!
http://shortwave.tk
700+ Radio Stations on SW http://swstations.tk
300+ languages on SW http://radiolanguages.tk


Page 1 of 2   1 2 > last >>