POST api/Route?start={start}&end={end}
Post route to api with parameter start and end location as strings
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| start |
Start Location |
string |
Required |
| end |
End Location |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Route| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id of the Route |
string |
None. |
| points |
Points within the Route |
Collection of Location |
None. |
| name |
Name of the Route |
string |
None. |
| type |
Type of the Route |
string |
None. |
| assets |
Assets within the Route |
Collection of Asset |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "sample string 1",
"points": [
{
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-10-24T07:51:57.9254735+00:00",
"altitude": 1.1
},
{
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-10-24T07:51:57.9254735+00:00",
"altitude": 1.1
}
],
"name": "sample string 2",
"type": "sample string 3",
"assets": [
{
"id": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"routeID": "sample string 4",
"group": "sample string 5",
"zones": [
"sample string 1",
"sample string 2"
],
"location": {
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-10-24T07:51:57.9254735+00:00",
"altitude": 1.1
},
"alert": true
},
{
"id": "sample string 1",
"name": "sample string 2",
"type": "sample string 3",
"routeID": "sample string 4",
"group": "sample string 5",
"zones": [
"sample string 1",
"sample string 2"
],
"location": {
"currentLat": 1.1,
"currentLon": 1.1,
"lastLat": 1.1,
"lastLon": 1.1,
"finalLat": 1.1,
"finalLon": 1.1,
"time": "2025-10-24T07:51:57.9254735+00:00",
"altitude": 1.1
},
"alert": true
}
]
}
application/xml, text/xml
Sample:
<Route xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AAVRADServer.Models">
<ID>sample string 1</ID>
<assets>
<Asset>
<ID>sample string 1</ID>
<alert>true</alert>
<group>sample string 5</group>
<location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-10-24T07:51:57.9254735+00:00</time>
</location>
<name>sample string 2</name>
<routeID>sample string 4</routeID>
<type>sample string 3</type>
<zones xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</zones>
</Asset>
<Asset>
<ID>sample string 1</ID>
<alert>true</alert>
<group>sample string 5</group>
<location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-10-24T07:51:57.9254735+00:00</time>
</location>
<name>sample string 2</name>
<routeID>sample string 4</routeID>
<type>sample string 3</type>
<zones xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</zones>
</Asset>
</assets>
<name>sample string 2</name>
<points>
<Location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-10-24T07:51:57.9254735+00:00</time>
</Location>
<Location>
<altitude>1.1</altitude>
<currentLat>1.1</currentLat>
<currentLon>1.1</currentLon>
<finalLat>1.1</finalLat>
<finalLon>1.1</finalLon>
<lastLat>1.1</lastLat>
<lastLon>1.1</lastLon>
<time>2025-10-24T07:51:57.9254735+00:00</time>
</Location>
</points>
<type>sample string 3</type>
</Route>