-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Downloading the Data
The built data files are no longer checked into Git.
You can download published data files from the JSDelivr CDN.
This is the recommended option for projects that aren't using JavaScript, or that need to use the files in a browser application.
Browse the files here:
https://cdn.jsdelivr.net/npm/name-suggestion-index/
You can download a file by using a semantic version number, or @latest to just get the latest version.
See the JSDelivr docs for more details.
For example:
https://cdn.jsdelivr.net/npm/name-suggestion-index@{semver}/{path to file}
https://cdn.jsdelivr.net/npm/name-suggestion-index@latest/dist/json/nsi.min.json
https://cdn.jsdelivr.net/npm/name-suggestion-index@7.0/dist/presets/nsi-josm-presets.min.xmlIf you have a JavaScript project and install this package as a dependency, it comes with all the data files.
Browse the files here:
https://www.npmjs.com/package/name-suggestion-index?activeTab=code
For example:
% npm install name-suggestion-index --save-dev
% ls ./node_modules/name-suggestion-index/dist
(files are here)Your code can then import the data, or load and use it, depending on the kind of JavaScript you are working with.
// Importing JSON directly might work
// For code that will be bundled and run in a browser later, you'll need to do this.
import nsi from 'name-suggestion-index/dist/json/nsi.json' with {type: 'json'};
// Or in Node
import fs from 'node:fs';
const filename = './node_modules/name-suggestion-index/dist/json/nsi.json';
const contents = fs.readFileSync(filename, 'utf8');
const data = JSON.parse(contents);
// Or in Bun
const filename = './node_modules/name-suggestion-index/dist/json/nsi.json';
const file = Bun.file(filename);
const data = await file.json();Contributing to the index
- Feature Files (geofences)
- Using Overpass Turbo
- Config Files
- Property Reference
- Technical Details
Information for developers using the name-suggestion-index in another project.
Information for maintainers, including how to clone and build the project.