Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the info of Google API key on README #431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ Table of content

<!-- TOC -->

- [Table of content](#table-of-content)
- [Overview](#overview)
- [A glimpse at the API](#a-glimpse-at-the-api)
- [Forward](#forward)
- [Multiple queries ('batch' geocoding)](#multiple-queries-batch-geocoding)
- [Multiple results](#multiple-results)
- [Reverse](#reverse)
- [House Addresses](#house-addresses)
Expand Down Expand Up @@ -90,7 +92,7 @@ Now lets use Geocoder to do the same task

```python
>>> import geocoder
>>> g = geocoder.google('Mountain View, CA')
>>> g = geocoder.google('Mountain View, CA', key='YOUR_GOOGLE_API_KEY')
>>> g.latlng
(37.3860517, -122.0838511)
```
Expand All @@ -103,7 +105,7 @@ Many properties are available once the geocoder object is created.

```python
>>> import geocoder
>>> g = geocoder.google('Mountain View, CA')
>>> g = geocoder.google('Mountain View, CA', key='YOUR_GOOGLE_API_KEY')
>>> g.geojson
>>> g.json
>>> g.wkt
Expand Down Expand Up @@ -145,7 +147,7 @@ Mountain View Post Office ['37.393', '-122.07774']
### Reverse

```python
>>> g = geocoder.google([45.15, -75.14], method='reverse')
>>> g = geocoder.google([45.15, -75.14], method='reverse', key='YOUR_GOOGLE_API_KEY')
>>> g.city
>>> g.state
>>> g.state_long
Expand All @@ -156,7 +158,7 @@ Mountain View Post Office ['37.393', '-122.07774']
### House Addresses

```python
>>> g = geocoder.google("453 Booth Street, Ottawa ON")
>>> g = geocoder.google("453 Booth Street, Ottawa ON", key='YOUR_GOOGLE_API_KEY')
>>> g.housenumber
>>> g.postal
>>> g.street
Expand All @@ -177,7 +179,7 @@ Mountain View Post Office ['37.393', '-122.07774']
Accessing the JSON & GeoJSON attributes will be different

```python
>>> g = geocoder.google("Ottawa")
>>> g = geocoder.google("Ottawa", key='YOUR_GOOGLE_API_KEY')
>>> g.bbox
{"northeast": [45.53453, -75.2465979], "southwest": [44.962733, -76.3539158]}

Expand Down