Skip to content

Commit 6c38a09

Browse files
authored
Update interface.py (org_id to organization_id)
Fixed inconsistent use of organization_id filter in interface.py. Since the image_bbox_check only allows organization_id to pass and throws an error on org_id, I've switched all the instances of org_id to organization_id. Next commit should do the same to controller/images.py which handles the filtering
1 parent 57ba8a5 commit 6c38a09

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mapillary/interface.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ def get_image_close_to(latitude=-122.1504711, longitude=37.485073, **kwargs):
121121
:param kwargs.max_captured_at: The max date. Format from 'YYYY', to 'YYYY-MM-DDTHH:MM:SS'
122122
:type kwargs.max_captured_at: str
123123
124-
:param kwargs.org_id: The organization id, ID of the organization this image (or sets of
124+
:param kwargs.organization_id: The organization id, ID of the organization this image (or sets of
125125
images) belong to. It can be absent. Thus, default is -1 (None)
126-
:type kwargs.org_id: int
126+
:type kwargs.organization_id: int
127127
128128
:return: GeoJSON
129129
:rtype: dict
@@ -444,7 +444,7 @@ def sequences_in_bbox(bbox: dict, **filters) -> str:
444444
- max_captured_at
445445
- min_captured_at
446446
- image_type: pano, flat, or all
447-
- org_id
447+
- organization_id
448448
449449
:type filters: dict
450450
@@ -467,7 +467,7 @@ def sequences_in_bbox(bbox: dict, **filters) -> str:
467467
... max_captured_at='YYYY-MM-DD HH:MM:SS',
468468
... min_captured_at='YYYY-MM-DD HH:MM:SS',
469469
... image_type='pano',
470-
... org_id='ORG_ID'
470+
... organization_id='ORG_ID'
471471
... )
472472
"""
473473

0 commit comments

Comments
 (0)