All Projects â†’ jcblw â†’ geode

jcblw / geode

Licence: other
🌎 wrapper for www.geonames.org written in javascript as a node module

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to geode

CLAVIN-NERD
Stanford NLP Implementation of the CLAVIN LocationTagger
Stars: ✭ 22 (-61.4%)
Mutual labels:  geonames
CLAVIN-rest
A Spring Boot microservice that serves the CLAVIN (https://github.com/novetta/CLAVIN) library for geo rectifying locations mentioned in text.
Stars: ✭ 16 (-71.93%)
Mutual labels:  geonames
local-reverse-geocoder
Local reverse geocoder for Node.js based on GeoNames data
Stars: ✭ 155 (+171.93%)
Mutual labels:  geonames
geonamescache
geonamescache - a Python library for quick access to a subset of GeoNames data.
Stars: ✭ 76 (+33.33%)
Mutual labels:  geonames
geonames-client
GeoNames API Client
Stars: ✭ 32 (-43.86%)
Mutual labels:  geonames
Xponents
Geographic Place, Date/time, and Pattern entity extraction toolkit along with text extraction from unstructured data and GIS outputters.
Stars: ✭ 39 (-31.58%)
Mutual labels:  geonames
WhatsMissingInGeoparsing
The accompanying code and data for the Springer 2017 publication "What's missing in geographical parsing?" in Language Resources and Evaluation.
Stars: ✭ 15 (-73.68%)
Mutual labels:  geonames
EpiTator
EpiTator annotates epidemiological information in text documents. It is the natural language processing framework that powers GRITS and EIDR Connect.
Stars: ✭ 38 (-33.33%)
Mutual labels:  geonames
lucene-geo-gazetteer
Uses Apache Lucene, OpenNLP and geonames and extracts locations from text and geocodes them.
Stars: ✭ 34 (-40.35%)
Mutual labels:  geonames

Geode

Greenkeeper badge

Build StatusCoverage Status

Locations API in node from www.geonames.org

Install

npm install geode

Use

You will need an account ~ its free (signup).

//include
var geo = new geode('username', {language: 'en', countryCode : 'US'})

geo.search({name :'Riverside'}, function(err, results){
	console.log([err, results])
})

Demo

Here is a simple Express App throwing up an API. (see demo).

The express code is just

var api = new Geode('username', {countryCode: "US", language: 'en'});

app.get('/:collection.:format', function(req, res){
  if(req.params.collection && req.params.format){
    api[req.params.collection](req.query, function(err, collection){
      res[req.params.format]({status : 200, results : collection});
    });
  }else{
    res.send('404');
  }
})

Testing

Make sure to install the development dependecies npm install --dev and then run.

USER=yourusername npm test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].