https://github.com/starryinternet/place-parser
Break Google Places up into US address components
https://github.com/starryinternet/place-parser
Last synced: about 1 year ago
JSON representation
Break Google Places up into US address components
- Host: GitHub
- URL: https://github.com/starryinternet/place-parser
- Owner: StarryInternet
- License: mit
- Created: 2017-01-31T22:37:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-09T13:37:35.000Z (over 9 years ago)
- Last Synced: 2025-03-06T00:46:22.800Z (over 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
README
# place-parser
[](https://travis-ci.org/StarryInternet/place-parser)
Break Google Places up into US address components
---
### Installing
```
npm install --save place-parser
```
---
### Example
```js
'use strict';
const parser = require('place-parser');
const result = parser( someGooglePlaceObject );
console.log( result );
// {
// street_number: '38',
// street_name: 'Chauncy Street',
// city: 'Boston',
// county: 'Suffolk County',
// state_short: 'MA',
// state_long: 'Massachusetts',
// country_short: 'US',
// country_long: 'United States',
// zip_code: '02111',
// address: '38 Chauncy Street'
// }
```