Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
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 171 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.