Skip to content

Commit

Permalink
Add partial_match attribute to Google Geocoder candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp Hall committed Mar 10, 2017
1 parent 21f4351 commit 48f15ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions omgeo/services/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def _make_candidate_from_result(self, result):
candidate.x = result['geometry']['location']['lng']
candidate.y = result['geometry']['location']['lat']
candidate.locator = self.LOCATOR_MAPPING.get(result['geometry']['location_type'], '')
candidate.partial_match = result.get('partial_match', False)

component_lookups = {
'city': {'type': 'locality', 'key': 'long_name'},
Expand Down

0 comments on commit 48f15ac

Please sign in to comment.