Skip to content

Commit f1e1fff

Browse files
authored
also record _type
1 parent b157c1a commit f1e1fff

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

examples/batch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ async def write_one_geocoding_result(geocoding_results, address, address_id):
3535
first_result['geometry']['lat'],
3636
first_result['geometry']['lng'],
3737
# Any of the components might be empty:
38+
first_result['components'].get('_type', ''),
3839
first_result['components'].get('country', ''),
3940
first_result['components'].get('county', ''),
4041
first_result['components'].get('city', ''),
@@ -56,6 +57,7 @@ async def write_one_geocoding_result(geocoding_results, address, address_id):
5657
'',
5758
'',
5859
'',
60+
'',
5961
-1, # confidence values are 1-10 (lowest to highest), use -1 for unknown
6062
''
6163
]

0 commit comments

Comments
 (0)