Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mapillary.interface.get_image_close_to cannot filter organization_id #151

Open
koito19960406 opened this issue May 30, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@koito19960406
Copy link

koito19960406 commented May 30, 2023

Describe the bug
When specifying "organization_id" in mapillary.interface.get_image_close_to function, the output includes ids of images captured by others than the specified "organization_id"

To Reproduce
mapillary.interface.get_image_close_to(latitude=-122.1504711, longitude=37.485073, organization_id = YOUR_ORG_ID)

Expected behavior
I expected that I only get ids by images captured by the specified organization id

Screenshots
I just got all the images near the input points

Additional context
The root cause is the discrepancy between image_check and get_image_close_to_controller functions. image_check only allows "organization_id" as a valid kwarg but get_image_close_to_controller only recognizes "org_id" when filtering kwarg.

                            {
                                "filter": "organization_id",
                                "organization_ids": kwargs["org_id"],
                            }
                            if "org_id" in kwargs
@koito19960406 koito19960406 added the bug Something isn't working label May 30, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant