Is there an API out there (Google Maps for instance), that can give you the farthest city to your location based on a distance you provide it?
Seems like this might be useful:
https://stackoverflow.com/a/23801679/7164658
I will check it out. Thanks!
Google Maps API has a distance matrix functionality you can use to calc distance between two cities, not sure if you can query cities in the proximity though.
My real challenge is providing a current location and a distance value, and getting back the farthest city within that distance.
This comment was deleted 6 years ago
Not trivial, but don't too difficult. Would require some skills that a lot of people don't have. But a great opportunity to learn!
It's a small part of what I am building. I'd rather not expend considerable effort in building this functionality. In any other situation, it would be a fun challenge.