fix: Construct necessary location string
I'd be better to directly create a location here but I for now want to make as little modifications as possible
This commit is contained in:
		@@ -25,10 +25,7 @@ def transform_osm_data(feature):
 | 
			
		||||
        "website": prop.get("website"),
 | 
			
		||||
        "opening_hours": prop.get("opening_hours"),
 | 
			
		||||
        "email": prop.get("email"),
 | 
			
		||||
        "location": {
 | 
			
		||||
            "type": geometry.get("type", "Point"),
 | 
			
		||||
            "coordinates": geometry.get("coordinates", [])
 | 
			
		||||
        },
 | 
			
		||||
        "location_string": f'{prop.get("addr:street", "")} {prop.get("addr:housenumber", "")} {prop.get("addr:postcode", "")} {prop.get("addr:city", "")}',
 | 
			
		||||
        "external_object_id": prop.get("@id"),
 | 
			
		||||
        "external_source_id": "OSM"
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user