+ Reply to Thread
Results 1 to 4 of 4

GPS Matrix

  1. #1
    Registered User
    Join Date
    01-06-2012
    Location
    bxl
    MS-Off Ver
    Excel 2010
    Posts
    2

    GPS Matrix

    Hi all !

    I'm trying to link 2000 GPS points (with lat and long coordinates in decimals) to a list of 200 cities (that also have lat and long coordinates in decimals) by choosing the closest city.
    I guess I have to build some kind of double matrix and where I calculate the differences between the latitude of the first point and all the latitudes of my city list, and choose the smallest differences. But in the same I have to do the same with longitudes...that's where it gets trickier...Should I build some kind of vector that calculates the absolute distance? How could I do that?

    Is it clear? Any ideas ?

    Because of confidentiality, I cannot give the coordinates (but it is for a good cause :-))

    Thanks in advance for your help!

    Pierre

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: GPS Matrix

    Hi Pierre,

    You need the smallest differences between the - let say coordinates. I believe it would be better if you use a example to describe only this point and get this transferred to your own scenario.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +91 9810929744
    dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    01-06-2012
    Location
    bxl
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: GPS Matrix

    Thank you for your answer DILIPanday !
    Actually your comment made me realise that the distance is not simply the difference between coordinates because 1 degree in Latitude is different than I deg in Longitude.
    So a friend gave the formula and I got to that result (in attached).
    No need for macro, matrix...what do you think, does it look correct ?
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: GPS Matrix

    Hi pierre,

    I had a look into your excel file.
    You are looking for the min. distance in A to J and the formula in AH column is doing the same. so it looks correct to me.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1