forked from hans/Nominatim
ab477736045a1e68dc7545140a04cb58c8a4a06e
New query string parameter polygon_threshold=<0.0..1> is introduced. The float value of this parameter (defaults to 0) is passed to ST_SimplifyPreserveTopology() on geometry we're about to output in one (or many) requested formats such as GeoJSON, KML, etc. This is useful when getting border polygons for whole countries, but rendering them at large scale, when most of the high resolution details cannot be seen anyway. For example, the unsimplified polygon data for Germany in GeoJSON format currently makes for about 3 MB response body. With use of this new parameter, the application can greatly reduce the amount of downloaded data and server response time while providing its users with the same picture. On a typical laptop screen resolution, zooming out to fit the whole country borders on screen, only 1/100 amount of details could be well enough.
Nominatim
=========
Nominatim (from the Latin, 'by name') is a tool to search OpenStreetMap data
by name and address (geocoding) and to generate synthetic addresses of
OSM points (reverse geocoding). An instance with up-to-date data can be found
at http://nominatim.openstreetmap.org. Nominatim is also used as one of the
sources for the Search box on the OpenStreetMap home page and powers the search
on the MapQuest Open Initiative websites.
Documentation
=============
More information about Nominatim, including usage and installation instructions,
can be found in the OSM wiki at:
http://wiki.openstreetmap.org/wiki/Nominatim
Installation
============
The following instructions is a quick guide to installation. A more detailed guide
how to set up your own instance of Nominatim can be found in the wiki:
http://wiki.openstreetmap.org/wiki/Nominatim/Installation
Note that this repository contains a submodule called osm2pgsql. Make sure it
is cloned as well by running `git submodule update --init`.
Installation steps:
0. If checking out from git run:
./autogen.sh
1. Compile Nominatim:
./configure
make
2. Get OSM data and import:
./utils/setup.php --osm-file <your planet file> --all
3. Point your webserver to the ./website directory.
License
=======
The source code is available under a GPLv2 license.
Contact and Bugreports
======================
For questions you can join the geocoding mailinglist, see
http://lists.openstreetmap.org/listinfo/geocoding
Bugs may be reported on the github project site:
https://github.com/twain47/Nominatim
Description
Languages
Python
71.2%
Gherkin
17.9%
PLpgSQL
7.1%
Lua
2.3%
Shell
1.3%
Other
0.2%