Skip to content

mapillary.interface.get_image_close_to cannot filter organization_id #151

Open
@koito19960406

Description

@koito19960406

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions