Sequence geometry

Hi there,

I am using the Mapillary Python SDK to retrieve data, more precisely the function images_in_geojson(). Since I am analyzing the quality of each sequence, I would like to reconstruct the structure of each sequence using the image coordinates. This has been quite cumbersome because the images do not have information about their order in the sequence. Is there any possibility to also download the geometry of the sequence using the sequence_id?

I don’t know the answer to this question exactly, but theoretically you should be able to use timestamp right? The images should theoretically be in timestamp order.

1 Like

Hi, yes, totally forgot about the timestamp. I will try it out!

1 Like

I was writing my answer for too long, you already have everything. But as I have it, here it is:

Plan A: Each feature returned by images_in_geojson() should include both sequence_id and captured_at in its properties. So you can rebuild any sequence just by grouping on sequence_id and sorting by captured_at.

Plan B (if you ever need it): Our API returns a sequence’s images already in order via

curl -H "Authorization: OAuth $MLY_TOKEN" \
"https://graph.mapillary.com/image_ids?sequence_id=<SEQUENCE_ID>"

--
BR, Yaro

3 Likes

Thank you!