search-geonames
General
Node.js module for geocoding and reverse geocoding.
Uses service Geonames geocoding API.
Geocoding. Geonames API - search by query.
It is the process of matching address with geographic coordinates.
Response example.
Reverse Geocoding. Geonames API - findNearBy.
It is the process of matching geographic coordinates with address.
Response example.
Wikipedia, search data by query about location.
Geonames API - Wikipedia fulltext search.
Response example.
Wikipedia, search data by coordinates about location.
Geonames API - find nerby Wikipedia Entries.
Response example.
Output format like JSON.
Installation
npm install search-geonames [-S]
Usage example
// initialize geocoder instancevar geonames = ; // request parametersconst ADDRESS = 'Kyiv, Khreshchatyk';const LATITUDE = '50.45';const LONGITUDE = '30.523';const LANGUAGE = 'en'; // you can use Geonames options to manage result formatvar options = language: LANGUAGE; // use callback to return result from geocoding process { if error console; // on error else console; // on success} // address geocodinggeonames;// reverse geocodinggeonames;// get wiki data by addresscommunicator;// get wiki data by geographic coordinatescommunicator;