Geode
:earth_americas: wrapper for www.geonames.org written in javascript as a node module
Install / Use
/learn @jcblw/GeodeREADME
Geode
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
Related Skills
gh-issues
347.2kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
347.2kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
taskflow-inbox-triage
347.2kname: taskflow-inbox-triage description: Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some w
