Get Plan Data
The above API provides list of plan data. you can search plans by plan name or paginate plan list through this API.
This API provides programmatic access to plan data with secure API key authentication. Use a GET request to retrieve details like geofence points, mission waypoints, statistics, and project configuration. Comprehensive documentation helps developers leverage the API effectively.
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 plan data
HTTP Request
https://ags.aeromegh.com/AeroMegh/AeroStack/getPlan?projectName=test&planName=xx
HTTP Response
Response codes explanation:
200
message: "ok"
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
The following parameters are included in the API response :
Geofence
Contains a list of geofence points with latitude, longitude, and altitude coordinates.
Mission
Contains a list of waypoints for the mission, each specifying altitude, coordinate type, latitude, longitude, and speed.
MissionStatistics
Contains statistics related to the mission, including parameters like spraying spacing, spraying speed, altitude, area covered, etc.
DGCAfence
Similar to the Geofence section, contains a list of geofence points with latitude, longitude, and altitude coordinates.
planConfiguration
Contains project details, including client name, date and time, plan completion status, plan name, and project name.
projectName
Specifies the name of the project ("test").
planName
Specifies the name of the plan ("xx").
corridor
Provides information about a corridor, indicating that a file associated with it was not found in the database.
obstacle
Contains information about obstacles, including polygons and circles.
Last updated