Reputation: 6951
I have some coordinates, which will always be somewhere in an ocean. I need a way to convert the coordinates into a string telling which ocean/sea the coordinate falls. Is there any convenient way to do this?
Thanks
Upvotes: 2
Views: 241
Reputation: 126
You can use reverse geocoding API: https://developers.google.com/maps/documentation/geocoding/#ReverseGeocoding https://developers.google.com/maps/documentation/javascript/examples/geocoding-reverse
Upvotes: 1
Reputation: 4566
If you're using MapKit, you can use the CLGeocoder
method – reverseGeocodeLocation:completionHandler:
to perform a reverse geocoding request. The completion handler returns an array of CLPlacemark
objects. If you take a look at the CLPlacemark Class Reference, you'll see that there is an ocean
property that contains the name of the ocean associated with the placemark. I'm assuming this will also apply to seas; if not, try the inlandWater
property instead.
Upvotes: 5