Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
name-suggestion-index
Advanced tools
Canonical common brand names for OpenStreetMap
The goal of this project is to maintain a canonical list of commonly used names for suggesting consistent spelling and tagging of features in OpenStreetMap.
When mappers create features in OpenStreetMap, they are not always consistent about how they
name and tag things. For example, we may prefer McDonald's
tagged as amenity=fast_food
but we see many examples of other spellings (Mc Donald's
, McDonalds
, McDonald’s
) and
taggings (amenity=restaurant
).
Building a canonical name index allows two very useful things:
The name-suggestion-index is in use in iD when adding a new item
Currently used in:
git clone git@github.com:osmlab/name-suggestion-index.git
cd
into the project folder,npm install
to install librariesPreset files (used by OSM editors):
dist/name-suggestions.json
- Name suggestion presetsdist/name-suggestions.min.json
- Name suggestion presets, minifieddist/name-suggestions.presets.xml
- Name suggestion presets, as JOSM-style preset XMLName lists:
dist/allNames.json
- all the frequent names and tags collected from OpenStreetMapdist/discardNames.json
- discarded subset of allNamesdist/keepNames.json
- kept subset of allNamesconfig/filters.json
- Regular expressions used to filter allNames
into keepNames
/ discardNames
config/canonical.json
- The main config file containing all the most correct names and tags to assign to them:point_right: See CONTRIBUTING.md for info about how to contribute to this index.
npm run build
dist/keepNames.json
and dist/discardNames.json
keepNames
not already present in config/canonical.json
will be added to itconfig/canonical.json
dist/allNames.json
from planetThis takes a long time and a lot of disk space. It can be done occasionally by project maintainers. You do not need to do these steps in order to contribute to the index.
osmium
commandline tool
apt-get install osmium-tool
or brew install osmium-tool
or similarcurl -o planet-latest.osm.pbf https://planet.openstreetmap.org/pbf/planet-latest.osm.pbf
osmium tags-filter planet-latest.osm.pbf -R name -o named.osm.pbf
osmium tags-filter named.osm.pbf -R amenity,shop,leisure,man_made,tourism -o wanted.osm.pbf
node build_allNames wanted.osm.pbf
dist/allNames.json
git add dist/allNames.json && git commit -m 'Updated dist/allNames.json'
name-suggestion-index is available under the 3-Clause BSD License. See the LICENSE.md file for more details.
FAQs
Canonical common brand names for OpenStreetMap
The npm package name-suggestion-index receives a total of 553 weekly downloads. As such, name-suggestion-index popularity was classified as not popular.
We found that name-suggestion-index demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.