60c1301fca
Snapping a line to a point before splitting was meant to ensure that the split point is really on the line. However, ST_Snap() does not always behave well for this case. It may shorten the interpolation line in some cases with the result that two points housenumbers suddenly fall on the same point. It might also shorten the line down to a single point which then makes ST_Split() crash. Switch to a combination of ST_LineLocatePoint and ST_LineSubString instead, which guarantees to keep the original geometry. Explicitly handle the corner cases, where the split point falls on the beginning or end of the line. |
||
---|---|---|
.github | ||
cmake | ||
data | ||
docs | ||
lib-php | ||
lib-sql | ||
man | ||
module | ||
munin | ||
nominatim | ||
osm2pgsql@4facd1aea4 | ||
settings | ||
test | ||
utils | ||
vagrant | ||
.gitignore | ||
.gitmodules | ||
.mypy.ini | ||
.pylintrc | ||
AUTHORS | ||
ChangeLog | ||
CMakeLists.txt | ||
CONTRIBUTING.md | ||
COPYING | ||
phpcs.xml | ||
README.md | ||
SECURITY.md | ||
VAGRANT.md | ||
Vagrantfile |
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 https://nominatim.openstreetmap.org. Nominatim is also used as one of the sources for the Search box on the OpenStreetMap home page.
Documentation
The documentation of the latest development version is in the
docs/
subdirectory. A HTML version can be found at
https://nominatim.org/release-docs/develop/ .
Installation
The latest stable release can be downloaded from https://nominatim.org. There you can also find installation instructions for the release, as well as an extensive Troubleshooting/FAQ section.
Detailed installation instructions for current master can be found at nominatim.org as well.
A quick summary of the necessary steps:
-
Compile Nominatim:
mkdir build cd build cmake .. make sudo make install
-
Create a project directory, get OSM data and import:
mkdir nominatim-project cd nominatim-project nominatim import --osm-file <your planet file>
-
Point your webserver to the nominatim-project/website directory.
License
The source code is available under a GPLv2 license.
Contributing
Contributions, bugreport and pull requests are welcome. For details see contribution guide.
Questions and help
For questions, community help and discussions you can use the Github discussions forum or join the geocoding mailing list.