Fetching Locations
SyntaxGET /cs/locations.xml?[parameters] Output | Name | Description | | location_type_id | The location's type
| name
| The name of the location
| x, y
| The latitude and longitude of the location's center point
| geom
| The geofence of the location
|
Example
GET http://demo.visfleet.com/cs/locations.xml
<locations> <location> <id>4</id> <location_type_id>1</location_type_id> <name>Warehouse East</name> <x>175.519992446875</x> <y>-37.660001296875</y> <geom> POLYGON((175.519692146875 -37.6604571757812,175.520689571875 -37.6600388398437,175.520282021875 -37.6595829609375,175.519268509375 -37.66006565625,175.519692146875 -37.6604571757812)) </geom> </location> ... </locations>
Creating A LocationSyntaxPOST /cs/locations Input / Output | Name | Description | | location_type_id | The location's type
| name
| The name of the location
| x, y
| The latitude and longitude of the location's center point
| geom
| The geofence of the location
|
Example
POST http://demo.visfleet.com/cs/locations
<location> <location_type_id>1</location_type_id> <name>Warehouse East</name> <x>175.519992446875</x> <y>-37.660001296875</y> <geom> POLYGON((175.519692146875 -37.6604571757812,175.520689571875 -37.6600388398437,175.520282021875 -37.6595829609375,175.519268509375 -37.66006565625,175.519692146875 -37.6604571757812)) </geom> </location> |