Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
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 144 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.