Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dexterp37/geonoder
A NodeJS client for geocoding/reverse address lookup with plug-in services.
https://github.com/dexterp37/geonoder
Last synced: 9 days ago
JSON representation
A NodeJS client for geocoding/reverse address lookup with plug-in services.
- Host: GitHub
- URL: https://github.com/dexterp37/geonoder
- Owner: Dexterp37
- License: mit
- Created: 2013-05-13T17:00:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-30T08:31:52.000Z (over 11 years ago)
- Last Synced: 2024-10-14T21:56:19.730Z (25 days ago)
- Language: JavaScript
- Size: 103 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
geonoder
========A NodeJS client for geocoding/reverse address lookup with plug-in services.
Supported Providers
-------------------
* NominatimInstallation
------------
To install this module in your project issue this commandnpm install geonoder
Usage
-----
Find the latitude and longitude of a given street address using Google as a provider.``` js
var geonoder = require('geonoder')var plebiscitoAddress = 'Via del Plebiscito, 102 00186 Roma'
geonoder.toCoordinates(plebiscitoAddress, geonoder.providers.google, function(lat, long) {
console.log('Lat: ' + lat + ' Long: ' + long) // Lat: 41.8965209 Long: 12.4805225
})
```Perform a reverse geocoding, find the street address associated with a given latitude and longitude pair.
``` js
var geonoder = require('geonoder')var plebiscitoLat = 41.8965209
var plebiscitoLong = 12.4805225geonoder.toAddress(plebiscitoLat, plebiscitoLong, geonoder.providers.google, function(address) {
console.log('Address: ' + address) // 'Via del Plebiscito, 102 00186 Roma'
})
```Tests
-----
All tests are written using [mocha](https://github.com/visionmedia/mocha). To install and run the tests:npm install -g mocha
mocha -R listBug Reporting
-------------
To file a bug report, please use the project's [issue tracker](https://github.com/Dexterp37/geonoder/issues).Roadmap
-------
- Add other free services
- Add a caching mechanismLicense
-------
This project is released under the terms of the MIT license. You can find a copy of the license in the LICENSE file.