Пример #1
0
 def get_address(self, obj):
     address = obj.get('properties', {}).get('geocoding',
                                             {}).get('address', None)
     if not address:
         return None
     poi_lon, poi_lat = get_lon_lat(obj)
     return create_address_field(address, poi_lat=poi_lat, poi_lon=poi_lon)
Пример #2
0
 def get_address(self, obj):
     address = obj.get('properties', {}).get('geocoding',
                                             {}).get('address', None)
     if not address:
         return None
     return create_address_field(address)