Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
parse-google-address
Advanced tools
Readme
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 36 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.