How do I determine the distance between 2 latitude/longitude points in VB6?

Posted on 2009-02-17
Last Modified: 2012-05-06
How do I determine the distance between 2 latitude/longitude points in VB6?
For example. my starting point is longitude -72.952790, latitude 41.274780; my ending point
is -72.934346 and 41.304897.  The distance can be any numeric that can be put into a delimited list.  At the end of the routine I will have a list of x/y coordinates that starts with the closest to the ending point, and then continues with the next closest, and so on.  An example of the returned list would be:
Question by:MEINMEL
    LVL 16

    Accepted Solution

    I believe the code on this page

    calculates the distance between the two points.

    Author Closing Comment

    Thank you very much!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now