Field Squared API Services

<back to all web services

TeamCurrentLocation

GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.

The following routes are available for this service:
GET/{Workspace}/TeamCurrentLocation
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team. 
*/
open class TeamCurrentLocation
{
    var Workspace:String? = null
    var TeamLocations:ArrayList<TeamLocation> = ArrayList<TeamLocation>()
}

open class TeamLocation
{
    var ObjectId:String? = null
    var UserLocations:ArrayList<UserCurrentLocation> = ArrayList<UserCurrentLocation>()
}

open class UserCurrentLocation : Location()
{
    var ObjectId:String? = null
    var TimeStamp:String? = null
}

open class Location
{
    var y:Double? = null
    var x:Double? = null
}

Kotlin TeamCurrentLocation DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/TeamCurrentLocation HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv