find nearest lat/lng – loop through subArray as $key – PHP Versions
as per the guide here https://www.intelliwolf.com/find-nearest-location-from-array-of-coordinates-php/ I am trying to write a version that finds the nearest "ID" from the JSON feed found at https://easytide.admiralty.co.uk/Home/GetStations So far I have constructed the following sandbox https://3v4l.org/JX0i5#v7.3.1 <?PHP // json will eventually be…