parse-google-place

1.3.0 • Public • Published

parse-google-place Build Status

Parse a google place into a normal US address format

Install

$ npm install --save parse-google-place

Usage

var parseGooglePlace = require('parse-google-place')
 
parseGooglePlace(googlePlace)
//=> address

API

parseGooglePlace(place) -> address

place

Required Type: object

A place from the google places API. See ./fixture.js for an example.

Returns address

"Address" is an object with the following keys:

  • streetNumber
  • streetName
  • address
  • city
  • county
  • stateShort
  • stateLong
  • countryShort
  • countryLong
  • zipCode

Any properties not found in the place result will default to empty string.

License

MIT © Andrew Joslin

Readme

Keywords

Package Sidebar

Install

npm i parse-google-place

Weekly Downloads

1,437

Version

1.3.0

License

MIT

Unpacked Size

7.2 kB

Total Files

9

Last publish

Collaborators

  • andytjoslin