geocoder.js
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "geocoder.js", | ||
"version": "1.0.0", | ||
"description": "Fast offline coarse Geocoder", | ||
"main": "./lib/index.js", | ||
"bin": { | ||
"geocoder.js": "build.js" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/alixaxel/geocoder.js.git" | ||
}, | ||
"keywords": [ | ||
"geo", | ||
"geocoder", | ||
"geonames" | ||
], | ||
"author": "Alix Axel (https://github.com/alixaxel/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/alixaxel/geocoder.js/issues" | ||
}, | ||
"homepage": "https://github.com/alixaxel/geocoder.js", | ||
"dependencies": { | ||
"async": "^1.2.1", | ||
"dblite": "^0.7.6", | ||
"line-reader": "^0.2.4", | ||
"lodash": "^3.9.3" | ||
} | ||
"name": "geocoder.js", | ||
"version": "1.1.0", | ||
"description": "Fast offline coarse Geocoder", | ||
"main": "./lib/index.js", | ||
"bin": { | ||
"geocoder.js": "build.js" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/alixaxel/geocoder.js.git" | ||
}, | ||
"keywords": [ | ||
"geo", | ||
"geocoder", | ||
"geonames" | ||
], | ||
"author": "Alix Axel (https://github.com/alixaxel/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/alixaxel/geocoder.js/issues" | ||
}, | ||
"homepage": "https://github.com/alixaxel/geocoder.js", | ||
"dependencies": { | ||
"async": "^1.2.1", | ||
"dblite": "^0.7.6", | ||
"line-reader": "^0.2.4", | ||
"lodash": "^3.9.3" | ||
} | ||
} |
@@ -29,6 +29,20 @@ # geocoder.js | ||
npm install geocoder | ||
```shell | ||
npm install geocoder.js | ||
``` | ||
## Build Database | ||
```shell | ||
wget -q http://download.geonames.org/export/dump/countryInfo.txt -O ./node_modules/geocoder.js/data/geonames/countryInfo.txt && \ | ||
wget -q http://download.geonames.org/export/dump/cities1000.zip -O ./node_modules/geocoder.js/data/geonames/cities1000.zip && \ | ||
wget -q http://download.geonames.org/export/dump/alternateNames.zip -O ./node_modules/geocoder.js/data/geonames/alternateNames.zip && \ | ||
unzip ./node_modules/geocoder.js/data/geonames/cities1000.zip -d ./node_modules/geocoder.js/data/geonames/ && \ | ||
unzip ./node_modules/geocoder.js/data/geonames/alternateNames.zip -d ./node_modules/geocoder.js/data/geonames/ && \ | ||
rm ./node_modules/geocoder.js/data/geonames/*.zip && \ | ||
node ./node_modules/geocoder.js/data/build.js | ||
``` | ||
## License | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9797
48
1