Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

pelias-deprecated/categories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository is part of the Pelias project. Pelias is an open-source, open-data geocoder built by Mapzen that also powers Mapzen Search. Our official user documentation is here.

pelias-categories

Greenkeeper badge

This module is intended to represent the Pelias category taxonomy. It is the place to ask what categories exist, as well as what tags they correspond to in various data sets.

Installation

npm install pelias-categories

Usage

var categories = require('pelias-categories');

if (categories.isValidCategory('food')) {
  console.log('food is a valid category');
}

Contributing

Please fork and pull request against upstream master on a feature branch. Pretty please; provide unit tests. 🎉

Unit tests

You can run the unit test suite using the command:

$ npm test