I am using Mapbox's Geocoding API on iOS (Swift) to reverse geocode coordinates. I have been able to make it work for any land coords, but when on the ocean my code does not run (or print the placemark):
let task = geocoder.geocode(options) { (placemarks, attribution, error) in
guard let placemark = placemarks?.first else { return }
print(placemark.name)
}
So is this not supported by the API or is there something I am not seeing, or is there an alternative to this?
I have read their API Documentation and could not find anything...