Socket
Socket
Sign inDemoInstall

parse-google-address

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "parse-google-address",
"version": "1.0.1",
"version": "1.0.2",
"description": "This module is use to parse reverse geocode address component.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -27,3 +27,5 @@ # Google Reverse Geocode Address Parser

# Example
- Input
```
//Note: It is not mandatory to send all value just send the reverse geocode data addresss component as it is
let address_components = [

@@ -116,6 +118,6 @@ {

];
//Note: It is not mandatory to send all value just send the reverse geo code data addresss component as it is
```
// callback method
- callback method
```
AddressParser.Parse_Reverse_GeoCode_Address(address_components, function (err, ParsedData) {

@@ -125,5 +127,6 @@ if (err) console.error(err);

});
```
// async/await method
- async/await method
```
(async function () {

@@ -133,29 +136,33 @@ let ParsedData = await AddressParser.Parse_Reverse_GeoCode_Address(address_components);

}());
// promise method
```
- promise method
```
AddressParser.Parse_Reverse_GeoCode_Address(address_components).then((ParsedData) => {
console.log("Parsed Data--->", ParsedData);
});
```
# Response(JSON Object)
```
//Note Default values are Empty Strings("") if not available in input
{
"Postal_Code": "500081", //Postal code or Zipcode or Pincode
"Country": "India", //Country
"Area_Level_1": "Telangana", //State or Territory
"Area_Level_2": "Ranga Reddy", //District or Counties
"Area_Level_3": "Greater Hyderabad", //colloquial_area or entity above the locality
"Postal_Town": "Hyderabad/Secunderabad", //Postal Town
"Locality": "Hyderabad", // City or Village or Town
"Sub_Locality_1": "Gachibowli", // Inner level of Locality
"Sub_Locality_2": "Telecom Nagar Extension", // Inner lervel of Sublocality 1
"Sub_Locality_3": "Industrial Area",// Inner lervel of Sublocality 2
"Neighborhood": "MNC Society", // Neighborhood or Colony
"Route": "Old Mumbai Highway", //Route for the address
"Street_Number": "2-48/5/6", // Street Number
"Premises": " 2-48/5/6, Vaishnavi Cynosure" //Premises Details if Available
"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"
}
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc