https://ithelp.ithome.com.tw/questions/10201134
由這一篇所看到
print(location.raw)
{'place_id': 274167592, 'licence': 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright', 'osm_type': 'way', 'osm_id': 364342772, 'lat': '25.046680148016772', 'lon': '121.46061970783416', 'display_name': '思源路112巷, 思源里, 新莊區, 中興里, 30, Taiwan', 'address': {'road': '思源路112巷', 'neighbourhood': '思源里', 'suburb': '新莊區', 'village': '中興里', 'postcode': '30', 'country': 'Taiwan', 'country_code': 'tw'}, 'boundingbox': ['25.0466468', '25.0466991', '121.460078', '121.4615729']}
請問如何只提取address裡面的, 'village' 'neighbourhood''suburb'
或者是把地址順序顛倒過來?
print(location['village'] + loction['road'])