Calculate the Driving Distance from one address to another

128 views
Skip to first unread message

Niven Sookharan

unread,
Sep 8, 2009, 5:46:22 AM9/8/09
to GeoCoding.Net
Geocoding
Aim: Calculate the driving distances between 2 addresses in South
Africa

My solution so far –
Google maps do not support South African roads so I used the yellow
pages Api which if we enter co-ordinates of the origin and
destination
It will calculate the driving distance and return the Kms. (that works
fine)

The problem I’m having is converting an address to geo-coordinates
(latitude & longitude)

I’m trying to use Googles http request which returns an xml or csv
file. But I can’t seem to access the file after the request is sent.
Is there a way I can save the response file? Then access it.

During my studies I’ve learnt vb.net. Most of the code on the net is
php or javascript
I’ve even looked at the google groups I even looked at other
programming sites but it was of no help.
And I’m having a real difficult time trying to get this feature of our
project working.

I wanted to know if you could help me out with this code or point me
to the right direction

Mauricio Scheffer

unread,
Sep 8, 2009, 9:37:58 AM9/8/09
to GeoCoding.Net
You don't need a file. The response is stored in memory, and with
Geocoding.net you don't even need to worry about xml or csv, you get
the response as an object which includes latitude, longitude, etc.

If you have questions about vb.net or .net in general I suggest you
ask on a more general forum, like http://www.vbdotnetforums.com/ or
http://stackoverflow.com

Cheers,
Mauricio
Reply all
Reply to author
Forward
0 new messages