I'm missing something obvious here and I just can't figure out how to quite go about it.
I've essentially got a list of 20 locations - then looking up their zip codes and referencing them to lat/long.
I want to take the 1st location (marking it as 1) and find the next closest location from it of the 19 remaining (and mark that location as 2). Then find the next closest location to location #2 and mark that as #3, etc. More or less trying to find the shortest distance path that taking me to all locations on that list without repeating. Short example below.
Good on finding the distance and comparing it, my issue is more with how to knock a location off from the list once it's been selected.
Any assistance would be appreciated it.
More or less the X loop doesn't do anything - I correctly find the location closest to Alpha but don't go beyond that because it just gets stuck there.
Bookmarks