OSMNames

From OpenStreetMap Wiki
Jump to navigation Jump to search
OSMNames
OSMNames search for Zurich.png
Authors: MapTiler, Geonick and other contributors.
License: GNU General Public License v2
Platforms: Windows, Linux, and macOS via Docker
Status: Unmaintained
Website: http://osmnames.org/
Source code: https://github.com/osmnames/osmnames
Programming languages: Python and SQL

Fulltext search of OpenStreetMap database

OSMNames is a project offering a downloadable list of place names for fulltext search, which is based on the OpenStreetMap database.

Every gazetteer record contains coverage area defined by a bounding box, administrative hierarchy, several identifiers, alternative names, and rank based on the popularity of related Wikipedia pages.

The total size of the compressed dump for the whole planet is less than 1.5GB. It contains place as well as street search. Address lookup and POI search may be supported in the future.

Data

Data for the whole planet are available for download on the project page in the Download section.

Data can be extracted for individual countries as well. In that case use command similar to this:

$ zcat planet-latest.tsv.gz | awk -F '\t' -v OFS='\t' 'NR == 1 || $16 == "ch"' > switzerland.tsv

Download defined by bounding box is possible as well:

zcat planet-latest.tsv.gz | awk -F '\t' -v OFS='\t' 'NR == 1 || ($8 > 47.225 && $8 < 47.533 && $7 > 8.275 && $7 < 8.800)' > zurich_switzerland.tsv

Data format details are available on the project download page.

Development

The project is developed and maintained by the OSM community and MapTiler team with some support by Hochschule für Technik Rapperswil (represented by User:Geonick).

Source Code

OSMNames is available under a free license (GNU GPL 2).

The source code is available on GitHub: https://github.com/osmnames/osmnames.

Bug reporting

Bug reports, as well as other issues, should be reported through the GitHub repository.

See also