2
2
Fork
You've already forked overpass-api-python-wrapper
2

specify bbox in query #123

Closed
opened 2020年05月15日 22:32:32 +02:00 by wendellwt · 2 comments
wendellwt commented 2020年05月15日 22:32:32 +02:00 (Migrated from github.com)
Copy link

I want to specify one bounding box when specifying a query, not on each line. Neither 'build' option seemed to work (true/false), because both TEMPLATE variables began with '[out:whatever];', and from what I understand about OverpassQL, the bounding box must appear before the first ';'.

I edited api.py to insert an optional bbox spec in the template. The 'git diff' is attached.
api.py_diff.txt

I want to specify one bounding box when specifying a query, not on each line. Neither 'build' option seemed to work (true/false), because both TEMPLATE variables began with '[out:whatever];', and from what I understand about OverpassQL, the bounding box _must_ appear before the first ';'. I edited api.py to insert an optional bbox spec in the template. The 'git diff' is attached. [api.py_diff.txt](https://github.com/mvexel/overpass-api-python-wrapper/files/4637014/api.py_diff.txt)

If you have a preferred API shape for bbox (params vs query builder), please share an example. This is on the 0.8 backlog.

If you have a preferred API shape for bbox (params vs query builder), please share an example. This is on the 0.8 backlog.

In 1.0 we will have a BBox value object + Query.in_bbox(...) + QuerySettings.

In 1.0 [we will have](https://codeberg.org/mvexel/overpass-api-python-wrapper/src/branch/main/DESIGN-1.0.md#spatial-value-objects) a `BBox` value object + `Query.in_bbox(...)` + `QuerySettings`.
Sign in to join this conversation.
No Branch/Tag specified
main
tutorial/d1-httpx-nvim
0.8.x
dev-contributor-tooling
1.0-dev
dev
feature/api-modernization
maintenance/base-0.8
maintenance/geojson-fixtures
archive/async-models
maintenance/endpoint-guard
maintenance/live-query-tool
maintenance/modernize-plan
archive/dev-prebaseline-20260502
archive/modernize
archive/chore-tests
chore/poetry
archive/readme
v0.8.2
v0.8.1
v0.8.0
v0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.7
0.5.6
0.5.5
0.4.0
0.1.0
0.0.2
0.0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mvexel/overpass-api-python-wrapper#123
Reference in a new issue
mvexel/overpass-api-python-wrapper
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?