Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Using WayQuery raises exception #176

Open
@StarvingMarvin

Description

@StarvingMarvin

I've literally just copy-pasted WayQuery example from the README and got the following exception:

---------------------------------------------------------------------------
OverpassSyntaxError                       Traceback (most recent call last)
Cell In[8], line 1
----> 1 v = api.get(wq)

File .../overpass/api.py:104, in API.get(self, query, responseformat, verbosity, build, date)
    101     logging.getLogger().info(query)
    103 # Get the response from Overpass
--> 104 r = self._get_from_overpass(full_query)
    105 content_type = r.headers.get("content-type")
    107 if self.debug:

File .../overpass/api.py:279, in API._get_from_overpass(self, query)
    277 if self._status != 200:
    278     if self._status == 400:
--> 279         raise OverpassSyntaxError(query)
    280     elif self._status == 429:
    281         raise MultipleRequestsError()

OverpassSyntaxError: [out:json];(way[name="Highway 51"]);(._;>;);out body;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions