OhmSpectator / streetviews-grabber

A script that grabs Google Street View for a city.
Other
7 stars 1 forks source link

Modify OverpassAPI query to return only first matching area #27

Closed OhmSpectator closed 1 year ago

OhmSpectator commented 1 year ago

The previous query was returning all matching areas for the {city} parameter, which could cause problems if the city name was used in multiple locations. This commit modifies the query to use the [1] operator in the area parameter, which ensures that only the first matching area is returned. This improves the reliability and accuracy of the query results.

Issue: #8

OhmSpectator commented 1 year ago

Does not work properly