Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mileage Calculation Program or Code 1

Status
Not open for further replies.

LonnieJohnson

Programmer
Apr 16, 2001
2,628
US
I have a legacy application we designed to calculate distance based on odometer readings before and after a trip. It does a lot of other things but this feature I would like to enhance.

How easy is it to incorporate some type of spacial database or widget into an application so I can calculate distance based on two addresses? I am sure things have evolved since we designed this 10 years ago.

ProDev, Builders of Affordable Software Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
You could look into calling an API like Google. They may offer something like that for you, however I am not sure.
I know where we work, the DB guys use SqlServer 2008. They use the Geography data type to hold lats and longs and calculate distance using those.
 
Thanks jbenson001,

It has been a while since I have been in the forum here. I actually stopped being lazy and did some googling myself and found a lot of results. Now my new issue is choosing. Thanks for the quick response.

ProDev, Builders of Affordable Software Applications
Visit me at ==>
May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top