Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
parse-google-autocomplete
Advanced tools
Parse Google Maps autocomplete results into structured address data
Parse Google Maps autocomplete results into structured address data
Works with most commonly typed US addresses. The results aren't always perfect—open a PR with new test fixtures if you find an unhandled case.
$ npm install --save parse-google-autocomplete
var parse = require('parse-google-autocomplete')
parse([
{
description: '1 Market Street, San Francisco, CA, United States',
// ...
},
// ...
])
//=> {id: 'abc', business: true, ...}
parse(data)
-> array
Required
Type: array[object]
An array of Google place results objects. See the test fixtures for examples.
The data is parsed into the following values, where empty values will be null
:
Type: string
The unique Google place ID.
Type: boolean
Indicates whether the result is a business based on the presence of the "establishment" primary result type.
Type: string
The name of the business, if applicable.
Type: string
The parsed address data derived from the terms
matched by Google.
MIT © Ben Drucker
FAQs
Parse Google Maps autocomplete results into structured address data
We found that parse-google-autocomplete 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.