
- Road-distance
- 05-10-2010
If you were Registered and logged in, you could reply and use other advanced thread options
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
On Mon, 10 May 2010 08:03:23 -0700 (PDT), Luis Quesada
You can do that with Google Maps.
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
>> 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.
>
> 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
> 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
> >> 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
> ======================================================================
> 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...)
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
> 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
- Distance from one city to another city
- Tomtom GPS
- 2011-08-05
- Google Maps - straight line distance
- Garmin GPS
- 2011-06-10
- How long after road changes does it take before new speed limits show up on Start 20?
- Tomtom GPS
- 2011-11-21
- Remove a road?
- Garmin GPS
- 2010-08-24
- Distance to destination on Nuvi 850?
- Garmin GPS
- 2009-07-27
- Road characteristics in Mapsource?
- Garmin GPS
- 2009-10-04

>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