Installation
$ npm install pelias-model
Document
The Document
model is a convenient way of modelling POI and admin records so that they are compatible with the Pelias import pipeline.
Using this model ensures that your import script will continue to work even when the underlying schema changes.
var Document = Document; var poi = 'geoname' 'venue' 1003 ; console;
Note the _meta
property is unenumerable, so you won't see it when you console.log
or JSON.stringify
the object, don't worry it's still there:
var poi = 'geoname' 'venue' 1003 ;poi; console;
NPM Module
The pelias-model
npm module can be found here:
https://npmjs.org/package/pelias-model
Contributing
Please fork and pull request against upstream master on a feature branch.
Pretty please; provide unit tests and script fixtures in the test
directory.
Running Unit Tests
$ npm test
Continuous Integration
Travis tests every release against Node.js versions 4
and 6
.
Versioning
We rely on semantic-release and Greenkeeper to maintain our module and dependency versions.