node-geocoder
node-geocoder copied to clipboard
North Pacific Ocean
Hi,
great plugin, thanks!
I only have one issue, when trying to reverse coordinates from oceans. E.g. clicking around 7.471741, -128.427631 on Google maps shows me "North Pacific Ocean". Calling geocoder.reverse with google provider returns this error:
{ Error: Status is ZERO_RESULTS.
at c:
Would it be possible to return "North Pacific Ocean" instead?
Thanks, Robert
Just tried to call directly the Google API: https://maps.googleapis.com/maps/api/geocode/json?latlng=7.471741,%20-128.427631, which returned { "results" : [], "status" : "ZERO_RESULTS" }
So "North Pacific Ocean" should come from another source...
Just found that geonames.org can give the right answer: http://api.geonames.org/ocean?lat=7.41343&lng=-128.427631&username=demo
<geonames>
<ocean>
<name>
North Pacific Ocean
</name>
</ocean>
</geonames>
Would it be possible to support this service as well?
Thanks, Robert
sure do you have time to do a pull request to add a new provider ?
Sorry Nicolas, on a very tight schedule at the moment... 2016.11.26. 15:21 ezt írta ("Nicolas Chaulet" [email protected]):
sure do you have time to do a pull request to add a new provider ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nchaulet/node-geocoder/issues/200#issuecomment-263065824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAekEb-PH42mxnwzsdSqZ0a-Vi_21ZNtks5rCEBugaJpZM4K8tZ1 .