Data Detections from a list of image IDs?

Hey,

I’m currently working on a university project, where we want to extract the different image detections within a set boundary. We have specifically chosen Copenhagen, as our testing ground. Here we have extracted all the image IDs and then can loop through the IDs and get the detections. However, this process seems to be very time-consuming, as there are over 1 million IDs.

Now, we were wondering how the implementation of multiple entities worked. Is it possible to make a request with a list of multiple IDs and then get a return of the corresponding detections, and what would that request look like?

1 Like

Hi! Check the “Detection search” section in the API Documentation to find out how you can fetch all detections that are within a bound box directly (e.g.
https://graph.mapillary.com/detections?access_token=$TOKEN&fields=value&bbox=12.967,55.597,13.008,55.607).

1 Like

I’ve been trying to run the same query with my token, but keep getting a 400 timeout error. Here is my query, with the exact same bbox coordinates as the documentation and using multiple bbox values and fields, and still nothing.

curl --location 'https://graph.mapillary.com/detections?access_token=XX&fields=value&bbox=12.967%2C55.597%2C13.008%2C55.607'

This is the response;

{
    "error": {
        "message": "Timeout",
        "type": "OAuthException",
        "code": -2,
        "error_subcode": 3404014,
        "is_transient": false,
        "error_user_title": "Consulta expirada",
        "error_user_msg": "A consulta expirou, tenta novamente",
        "fbtrace_id": "AvvVlnBEQX3-wYhX1VlpeYz"
    }
}

Does anyone know if this endpoint is still working?

cc: @tao who might have insight on this

1 Like