Reverse country names from lat/lon. Project was initiated first for the geokrety.org project.
- A database (mariadb in our case) with GIS support.
- A working php service
- A webserver
- Copy
geocoder.php
somewhere accessible by php. - Copy
geocoder.inc.ex.php
asgeocoder.inc.php
next togeocoder.php
- Edit
geocoder.inc.php
and fill your database configuration - Create a database, and import
countries.sql
.
All country polygons were extracted from Open Street Map.
Code is released under MIT license.
OSM data apply to © OpenStreetMap contributors