Skip to content

Commit

Permalink
Remove extra comments description for Google
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Mar 2, 2015
1 parent 8eb114d commit 61627e7
Showing 1 changed file with 15 additions and 44 deletions.
59 changes: 15 additions & 44 deletions geocoder/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,51 +10,23 @@ class Google(Base):
"""
Google Geocoding API
====================
Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway,
Mountain View, CA") into geographic coordinates (like latitude 37.423021 and
longitude -122.083739), which you can use to place markers or position the map.
Geocoding is the process of converting addresses into geographic
coordinates (like latitude 37.423021 and longitude -122.083739),
which you can use to place markers or position the map.
API Reference
-------------
https://developers.google.com/maps/documentation/geocoding/
OSM Quality (6/6)
-----------------
- [x] addr:housenumber
- [x] addr:street
- [x] addr:city
- [x] addr:state
- [x] addr:country
- [x] addr:postal
Attributes (26/26)
------------------
- [x] accuracy
- [x] address
- [x] bbox
- [x] city
- [x] city_long
- [x] confidence
- [x] country
- [x] country_long
- [x] county
- [x] encoding
- [x] housenumber
- [x] lat
- [x] lng
- [x] location
- [x] neighborhood
- [x] ok
- [x] postal
- [x] provider
- [x] quality
- [x] road_long
- [x] state
- [x] state_long
- [x] status
- [x] street
- [x] sublocality
- [x] subpremise
https://developers.google.com/maps/documentation/geocoding
Parameters
----------
:param location: Your search location you want geocoded.
:param method: (default=geocode) Use the following:
> geocode
> reverse
> batch
> timezone
> elevation
"""
provider = 'google'
method = 'geocode'
Expand All @@ -71,7 +43,7 @@ def __init__(self, location, **kwargs):
self._google_catch_errors()

@staticmethod
@ratelim.greedy(2500, 60*60*24)
@ratelim.greedy(2500, 60 * 60 * 24)
@ratelim.greedy(5, 1)
def rate_limited_get(*args, **kwargs):
return requests.get(*args, **kwargs)
Expand Down Expand Up @@ -183,4 +155,3 @@ def country_long(self):

if __name__ == '__main__':
g = Google('11 Wall Street, New York')

0 comments on commit 61627e7

Please sign in to comment.