JeffPeterson1
5 years agoQrew Captain
Finding the closest major metro to a city
Some similar questions have been asked but I can't find exactly what I'm after.
Here's the problem:
I have a list of sites in one table called 'Sites'.
In another table I have a list of 50 'Major Cities'. Both tables contain only the city name and the latitude and longitude.
What I want to do is compare each site to the list of major cities to determine which one is the closest.
I can see how to measure the distance between 2 sets of coordinates, but how would I compare to an entire table list and only return the closest Major City to each Site?
EDIT: I believe the found my answer here: https://community.quickbase.com/communities/community-home/digestviewer/viewthread?GroupId=43&MessageKey=2ea7d1af-9374-42a6-8182-6f1f7a545547&CommunityKey=157a0aac-5622-4134-8b0a-ae35c9b68e53&tab=digestviewer
------------------------------
Jeff Peterson
------------------------------
Here's the problem:
I have a list of sites in one table called 'Sites'.
In another table I have a list of 50 'Major Cities'. Both tables contain only the city name and the latitude and longitude.
What I want to do is compare each site to the list of major cities to determine which one is the closest.
I can see how to measure the distance between 2 sets of coordinates, but how would I compare to an entire table list and only return the closest Major City to each Site?
EDIT: I believe the found my answer here: https://community.quickbase.com/communities/community-home/digestviewer/viewthread?GroupId=43&MessageKey=2ea7d1af-9374-42a6-8182-6f1f7a545547&CommunityKey=157a0aac-5622-4134-8b0a-ae35c9b68e53&tab=digestviewer
------------------------------
Jeff Peterson
------------------------------