Get Plans
The above API provides list of plans by project name with details. you can search plans by plan name or paginate plan list through this API.
Last updated
Was this helpful?
Was this helpful?
curl --location 'https://ags.aeromegh.com/AeroMegh/AeroCapture/plans/<projectName>/<searchString>/<startIndex>/<pageSize>' \
--header 'Authorization: Bearer <API_key>'
//Please install 'axios' module first
//Set your API key before making the request your API key
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://ags.aeromegh.com/AeroMegh/AeroCapture/plans/xdcf/%20/0/1000/eb4d317f-6703-44ea-83e7-5c654b1df06a?tasktype=0',
headers: {
'Authorization': 'Bearer <API_KEY>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
//Please install 'requests' package first
//Set your API key before making the request
import requests
url = "https://ags.aeromegh.com/AeroMegh/AeroCapture/plans/xdcf/%20/0/1000/eb4d317f-6703-44ea-83e7-5c654b1df06a?tasktype=0"
payload = {}
headers = {
'Authorization': 'Bearer <API_KEY>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
{
"plans": [
{
"id": "b8b016dc-a6e4-44ae-ad67-91c9c9c7a236",
"project_name": "ndmvp2",
"plan_name": "plan1",
"user_id": "edb1bf33-0a01-4362-8474-e54e97873391",
"date_and_time": "2023-08-29T11:25:48.317Z",
"flight_source": "20.01507542048126 73.76465920705655",
"flight_destination": "20.014820933045964 73.76443928606061",
"plan_source_latlng": "20.01507542048126 73.76465920705655",
"linked_map": null,
"thumb": "https://pdrlimage.blob.core.windows.net/user-edb1bf33-0a01-4362-8474-e54e97873391/AeroGCSWorkspace/ndmvp2/plan1/Assets/planMap.png",
"MissionType": 2,
"geofenceData": {
"geofence": [
{
"lat": 20.0151333,
"lon": 73.7646886,
"alt": 7
},
{
"lat": 20.014784366616542,
"lon": 73.76462853922483,
"alt": 7
},
{
"lat": 20.01481353323206,
"lon": 73.76442703533068,
"alt": 7
},
{
"lat": 20.015172999998708,
"lon": 73.76448139600608,
"alt": 7
},
{
"lat": 20.0151333,
"lon": 73.7646886,
"alt": 7
}
]
},
"pilot_id": "st=2023-09-11T00%3A02%3A58Z&se=2024-09-11T09%3A22%3A58Z&sp=racwdl&sv=2018-03-28&sr=c&sig=94WHOurXVxKFMEOCATOP1trAJRq12ZTgwYjA3PpleCk%3D"
}
]
}
}