Skip to content

Commit

Permalink
perf(doc updates): Merge pull request #71 from pelias/update-document…
Browse files Browse the repository at this point in the history
…ation

BREAKING CHANGE: removed references to setAlpha3 in documentation
  • Loading branch information
trescube authored Jul 10, 2017
2 parents 9cd9847 + 68870f0 commit b077a7a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Using this model ensures that your import script will continue to work even when
var Document = require('pelias-model').Document;

var poi = new Document( 'geoname', 'venue', 1003 )
.setAlpha3( 'GBR' )
.setMeta( 'author', 'peter' )
.setName( 'default', 'Hackney City Farm' )
.setName( 'alt', 'Haggerston City Farm' )
Expand Down Expand Up @@ -75,4 +74,3 @@ Travis tests every release against Node.js versions `4` and `6`.
We rely on semantic-release and Greenkeeper to maintain our module and dependency versions.

[![Greenkeeper badge](https://badges.greenkeeper.io/pelias/model.svg)](https://greenkeeper.io/)

3 changes: 1 addition & 2 deletions example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
var Document = require('../index').Document;

var poi = new Document( 'geoname', 1003 )
.setAlpha3( 'GBR' )
.setMeta( 'author', 'peter' )
.setMeta( 'date', new Date().getTime() )
.setName( 'default', 'Hackney City Farm' )
Expand All @@ -15,4 +14,4 @@ var poi = new Document( 'geoname', 1003 )

console.log( poi );
console.log( poi._meta );
console.log( JSON.stringify( poi, null, 2 ) );
console.log( JSON.stringify( poi, null, 2 ) );

0 comments on commit b077a7a

Please sign in to comment.