Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
parse-google-address
Advanced tools
This module is use to parse reverse geocode address component.
This is a powerful Reverse geocoding parser module for Node.JS
npm install --save parse-google-address
import AddressParser from "parse-google-address";
var AddressParser = require('parse-google-address');
//Note: It is not mandatory to send all values just send the reverse geocode data address_components as it is
let address_components = [
{
"long_name": "5th Floor",
"short_name": "5th",
"types": ["floor"]
},
{
"long_name": "Unispace Business Center",
"short_name": "Unispace",
"types": ["subpremise"]
},
{
"long_name": "2-48/5/6, Vaishnavi Cynosure",
"short_name": "Vaishnavi Cynosure",
"types": ["premise"]
},
{
"long_name": "West Edge Street",
"short_name": "West Edge Street",
"types": ["street_address"]
},
{
"long_name": "2-48/5/6",
"short_name": "2-48/5/6",
"types": ["street_number"]
},
{
"long_name": "Old Mumbai Highway",
"short_name": "Old Mumbai Hwy",
"types": ["route"]
},
{
"long_name": "MNC Society",
"short_name": "MNC Society",
"types": ["political", "neighborhood"]
},
{
"long_name": "Industrial Area",
"short_name": "Industrial Area",
"types": ["political", "sublocality", "sublocality_level_3"]
},
{
"long_name": "Telecom Nagar Extension",
"short_name": "Telecom Nagar Extension",
"types": ["political", "sublocality", "sublocality_level_2"]
},
{
"long_name": "Gachibowli",
"short_name": "Gachibowli",
"types": ["political", "sublocality", "sublocality_level_1"]
},
{
"long_name": "Hyderabad",
"short_name": "Hyderabad",
"types": ["locality", "political"]
},
{
"long_name": "Hyderabad/Secunderabad",
"short_name": "Hyderabad/Secunderabad",
"types": ["postal_town", "political"]
},
{
"long_name": "Greater Hyderabad",
"short_name": "Greater Hyderabad",
"types": ["administrative_area_level_3", "political"]
},
{
"long_name": "Ranga Reddy",
"short_name": "R.R. District",
"types": ["administrative_area_level_2", "political"]
},
{
"long_name": "Telangana",
"short_name": "Telangana",
"types": ["administrative_area_level_1", "political"]
},
{
"long_name": "India",
"short_name": "IN",
"types": ["country", "political"]
},
{
"long_name": "500081",
"short_name": "500081",
"types": ["postal_code"]
}
];
AddressParser.Parse_Reverse_GeoCode_Address(address_components, function (err, ParsedData) {
if (err) console.error(err);
console.log("Parsed Data--->", ParsedData);
});
(async function () {
let ParsedData = await AddressParser.Parse_Reverse_GeoCode_Address(address_components);
console.log("Parsed Data--->", ParsedData);
}());
AddressParser.Parse_Reverse_GeoCode_Address(address_components).then((ParsedData) => {
console.log("Parsed Data--->", ParsedData);
});
//Note Default values are Empty Strings("") if not available in input
{
"Postal_Code": "500081",
"Country": "India",
"Area_Level_1": "Telangana",
"Area_Level_2": "Ranga Reddy",
"Area_Level_3": "Greater Hyderabad",
"Postal_Town": "Hyderabad/Secunderabad",
"Locality": "Hyderabad",
"Sub_Locality_1": "Gachibowli",
"Sub_Locality_2": "Telecom Nagar Extension",
"Sub_Locality_3": "Industrial Area",
"Neighborhood": "MNC Society",
"Route": "Old Mumbai Highway",
"Street_Address": "West Edge Street",
"Street_Number": "2-48/5/6",
"Premises": "2-48/5/6, Vaishnavi Cynosure",
"Sub_Premises": "Unispace Business Center",
"Floor": "5th Floor"
}
FAQs
This module is use to parse reverse geocode address component.
The npm package parse-google-address receives a total of 0 weekly downloads. As such, parse-google-address popularity was classified as not popular.
We found that parse-google-address 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.