O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Geocoding and reverse-geocoding using the GeoNames datasets

In this recipe, you will write two PL/PostgreSQL PostGIS functions that will let you perform geocoding and reverse-geocoding using the GeoNames datasets.

GeoNames is a database of the place names of the world, containing over eight million records that are available for download free of charge. For the purpose of this recipe, you will download a part of the database, load it in PostGIS, and then use it within two functions to perform geocoding and reverse-geocoding. Geocoding is the process of finding coordinates from geographical data such as an address or a place name, while reverse-geocoding is the process of finding geographical data such as an address or place name from its coordinates. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required