{"id":16247818,"url":"https://github.com/jcblw/geode","last_synced_at":"2025-03-19T19:31:30.819Z","repository":{"id":6563919,"uuid":"7805801","full_name":"jcblw/geode","owner":"jcblw","description":":earth_americas:  wrapper for www.geonames.org written in javascript as a node module","archived":false,"fork":false,"pushed_at":"2020-11-17T04:58:47.000Z","size":55,"stargazers_count":58,"open_issues_count":2,"forks_count":19,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-15T13:36:37.716Z","etag":null,"topics":["api","geonames"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcblw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-01-24T19:55:04.000Z","updated_at":"2024-10-19T22:59:16.000Z","dependencies_parsed_at":"2022-07-09T09:00:34.445Z","dependency_job_id":null,"html_url":"https://github.com/jcblw/geode","commit_stats":null,"previous_names":["jacoblwe20/geode"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fgeode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fgeode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fgeode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcblw%2Fgeode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcblw","download_url":"https://codeload.github.com/jcblw/geode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244492967,"owners_count":20461587,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","geonames"],"created_at":"2024-10-10T14:38:53.459Z","updated_at":"2025-03-19T19:31:30.533Z","avatar_url":"https://github.com/jcblw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geode\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/jcblw/geode.svg)](https://greenkeeper.io/)\n\n[![Build Status](https://travis-ci.org/jcblw/geode.svg?branch=master)](https://travis-ci.org/jcblw/geode)[![Coverage Status](https://coveralls.io/repos/github/jcblw/geode/badge.svg?branch=master)](https://coveralls.io/github/jcblw/geode?branch=master)\n\nLocations API in node from www.geonames.org\n\n## Install\n\n```shell\nnpm install geode\n```\n\n## Use\n\nYou will need an account ~ *its free* ([signup](http://www.geonames.org/login)).\n\n```javascript\n//include\nvar geo = new geode('username', {language: 'en', countryCode : 'US'})\n\ngeo.search({name :'Riverside'}, function(err, results){\n\tconsole.log([err, results])\n})\n```\n\n## Demo\n\nHere is a simple Express App throwing up an API. (see [demo](http://geode-demo.herokuapp.com/search.json?q=riverside\u0026maxRows=2)).\n\nThe express code is just\n\n```javascript\nvar api = new Geode('username', {countryCode: \"US\", language: 'en'});\n\napp.get('/:collection.:format', function(req, res){\n  if(req.params.collection \u0026\u0026 req.params.format){\n    api[req.params.collection](req.query, function(err, collection){\n      res[req.params.format]({status : 200, results : collection});\n    });\n  }else{\n    res.send('404');\n  }\n})\n```\n\n## Testing\n\nMake sure to install the development dependecies `npm install --dev` and then run.\n\n```\nUSER=yourusername npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcblw%2Fgeode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcblw%2Fgeode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcblw%2Fgeode/lists"}