in gemini/agents/research-multi-agents/ev_agent/api_handler/api_01_NeighborhoodSummary.py [0:0]
def process_automotive(elements: List[Dict]) -> Automotive:
automotive = Automotive()
for element in elements:
tags = element.get("tags", {})
shop_type = tags.get("shop")
amenity_type = tags.get("amenity")
if shop_type == "car":
automotive.car_dealerships += 1
elif shop_type == "car_repair":
automotive.car_repair += 1
elif amenity_type == "car_wash":
automotive.car_wash += 1
elif amenity_type == "car_rental":
automotive.car_rental += 1
elif amenity_type == "car_sharing":
automotive.car_sharing += 1
elif amenity_type == "fuel":
automotive.fuel_stations += 1
elif amenity_type == "charging_station":
automotive.ev_charging_stations += 1
return automotive