Search code examples
geolocationhtml5-videogeocodingopenlayers-3

How to get UK County name if we have the lat long


  1. User clicks on the 'locate me' button
  2. The lat long is populated using HTML5 navigator.geolocation feature
  3. I need to retrieve the county name now
  4. I would also like to avoid Google Maps Geocode API as there are usage limits & I'm already using it for some other purpose

Solution

  • You can use a Reverse Geocoding service like OSM or Photon - live demo.