Skip to content

Commit

Permalink
Update gisgraphy.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gisgraphy committed Apr 4, 2018
1 parent 48bc43a commit a0248e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions geocoder/gisgraphy.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ class GisgraphyQuery(MultipleResultsQuery):
_URL = 'https://services.gisgraphy.com/geocoding/'
_RESULT_CLASS = GisgraphyResult
_KEY_MANDATORY = False

def _build_headers(self, provider_key, **kwargs):
return {
'Referer': "http://addxy.com/",
'User-agent': 'geocoder-converter'
}

def _build_params(self, location, provider_key, **kwargs):
return {
Expand Down

0 comments on commit a0248e3

Please sign in to comment.