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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ceoautofusion

    Distance Calculation in Foxpro using Lat / Long

    Now if you search Google - this is the thread that shows up first - it has replaced the old thread. So mission accomplished - if someone needs to know how to do a distance calculations in Foxpro, this thread will show them how. That is what I was looking for when I searched - I found something...
  2. ceoautofusion

    Distance Calculation in Foxpro using Lat / Long

    My example was meant to be or more complete version of the original thread. In the original thread, the poster said that he did not test the code. I am showing javascript code that I found on the web - enhanced from what the original poster had obviously used, and the corresponding Foxpro Code -...
  3. ceoautofusion

    Distance Calculation in Foxpro using Lat / Long

    When I searched on Google for 'Foxpro distance calculation' the thread referenced at the top showed up first. If you read the thread it was left in an incomplete status and I couldn't updated it - as it had been closed. So the best I could do was to create a new trhead and reference the old one.
  4. ceoautofusion

    Distance Calculation in Foxpro using Lat / Long

    thread184-1621436 Here is the working foxpro code... lnlat1 = 32.61 lnlon1 = -117.07 lnlat2 = 33.12 lnlon2 = -117.09 lnR = 3958.7558657440545 && Radius of earth in Miles lnLat = DTOR(lnLat2 - lnLat1) lnLon = DTOR(lnLon2-lnLon1) lnA = SIN(lnLat / 2) * SIN(lnLat / 2) + COS(DTOR(lnLat1)) * ...

Part and Inventory Search

Back
Top