Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    yelp2geopublic

    yelp2geo

    Find TERM-related places in CITY and render results as geojson or map.

    conversion process

    That is, you can search for places falling in some category ("chinese takeout") within some city ("Seattle") and render the geocoded location results in geojson format or as a map via geojson.io.

    Usage

    yelp2geo [--in CITY] [--map] TERM
    

    Examples

    yelp2geo tacos
    yelp2geo --in Louisville brewpubs
    yelp2geo --in Nashville "chinese takeout"
    yelp2geo --in Milwaukee --map "bowling alleys"
    

    Config

    You need to add your Yelp API key and whatnot in config.json.

    Request API access here.

    You can also specify your default city and search term of interest:

    {
      "consumer_key": "YOUR_YELP_CONSUMER_KEY",
      "consumer_secret": "YOUR_YELP_CONSUMER_SECRET",
      "token": "YOUR_YELP_TOKEN",
      "token_secret": "YOUR_YELP_TOKEN_SECRET",
      "default": {
        "city": "Nashville",
        "term": "tacos"
      }
    }
    

    Keywords

    none

    install

    npm i yelp2geo

    Downloadsweekly downloads

    2

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar