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.
This API provides programmatic access to detailed plan information for projects. Authenticate with an API key in the Authorization header. Retrieve plan IDs, project names, creation dates, and more. Integrate to streamline plan management.
Authentication
To use the API, insert your API key in the Authorization header like this:
Replace <YOUR_API_KEY>
with your AeroGCS API key. Without it, you'll get a 401 Unauthorized error.
Method
GET : get all the plans
HTTP Request
URL Parameters
URL parameters are
project Name :
project name to fetch plans under this projects
project Id
project id to fetch plans under this projects
searchString :
search by planname
startIndex :
get records start offset
pageSize :
records on each page
HTTP Response Code
Response codes explanation:
200
message: "ok"
204
No content
400
request parameters missing
500
internal server error
Code Snippet
Examples of how you can call this API using curl, Node.js, and Python
Note: Replace <API_KEY>
with the actual API_KEY provided by Aeromegh.
API Response
Example of API response in JSON format:
API Response Parameter Details
The following parameters are included in the API response :
id: Unique identifier for the plan.
project_name: Name of the project to which this plan belongs.
plan_name: Name of the specific plan.
user_id: Unique identifier for the user associated with this plan.
date_and_time: Date and time when the plan was created
flight_source: Latitude and longitude coordinates representing the source of the flight
flight_destination: Latitude and longitude coordinates representing the destination of the flight
plan_source_latlng: Latitude and longitude coordinates representing the source of the plan
linked_map: This attribute appears to be null, indicating there is no linked map associated with this plan.
thumb: URL pointing to a thumbnail image associated with the plan
MissionType: Indicates the type of mission (
spraying plan
).Mission Type Values and Associated Plans:- The API response includes a missionType value, represented as an integer, which corresponds to different plans. Below is a table illustrating the missionType values along with their associated plan names:
0
Waypoints
1
Survey
2
Spraying
3
Vertical
5
Corridor
6
Circular
geofenceData: Contains an array of geofence coordinates with their respective latitude, longitude, and altitude.
pilot_id: represent authentication or authorization token.
Last updated