Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
reverse-geocoding
Advanced tools
Reverse Geocoding for a Latitude and Longitude by Async.
Basic
var geocoding = new require('reverse-geocoding');
var config = {
'latitude': 40.00403611111111,
'longitude': 116.48485555555555
};
geocoding(config, function (err, data){
if(err){
console.log(err);
}else{
console.log(data);
}
});
Custom Proxy
var geocoding = new require('reverse-geocoding');
var config = {
'latitude': 40.00403611111111,
'longitude': 116.48485555555555,
'options': {
'host': 'proxy.zhso.net',
'port': 8080,
'protocol': 'http:',
'method': 'GET',
'headers': {
'Proxy-Authorization': 'Basic ' + new Buffer('username:password').toString('base64')
}
}
};
geocoding(config, function (err, data){
if(err){
console.log(err);
}else{
console.log(data);
}
});
Custom Params
var geocoding = new require('reverse-geocoding');
var config = {
'latitude': 40.00403611111111,
'longitude': 116.48485555555555,
'language': 'zh-cn'
};
geocoding(config, (err, data) => {
console.log(err ? err : data);
});
{
"formattedAddress": "",
"streetAddress": "",
"route": "",
"intersection": "",
"political": "",
"country": "",
"administrativeAreaLevel1": "",
"administrativeAreaLevel2": "",
"administrativeAreaLevel3": "",
"administrativeAreaLevel4": "",
"administrativeAreaLevel5": "",
"colloquialArea": "",
"locality": "",
"ward": "",
"sublocality": "",
"neighborhood": "",
"premise": "",
"subpremise": "",
"postalCode": "",
"naturalFeature": "",
"airport": "",
"park": "",
"pointOfInterest": ""
}
FAQs
Reverse Geocoding for a Latitude and Longitude by Async.
The npm package reverse-geocoding receives a total of 221 weekly downloads. As such, reverse-geocoding popularity was classified as not popular.
We found that reverse-geocoding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.