Reputation: 21
Following the steps described at https://aps.autodesk.com/en/docs/data/v2/tutorials/download-file/, I'm able to download photos. The only that is missing here is that I don't know how to obtain the photo location (latitude and longitude of the photo) with this workflow. Any ideas?
I also tried to used the ID from step#5 (see storage location below in the included.relationships.storage.data.id)
with the endpoint https://aps.autodesk.com/en/docs/acc/v1/reference/http/photos-getphoto-GET/ to obtain that information but apparently that id is not the photoID. I'm receiving a 404 error with the query https://developer.api.autodesk.com/construction/photos/v1/projects/:projectID/photos/:photoID and on the map of the ACC connect it is a different id used to represent that photo
Any explanations?
Upvotes: 0
Views: 66
Reputation: 7070
It depends on where your photo file is stored. If they are in the Files module of Autodesk Construction Cloud, we can only use Data Management API.
Your first snapshot indicates the photo file was uploaded to the Files module, so you cannot use ACC Photos API, as they are different modules.
To use ACC Photos API, you must reupload the photo file to ACC Photos module instead, as you did in your second snapshot.
Upvotes: 0