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

export class Location
{
    public y: number;
    public x: number;

    public constructor(init?: Partial<Location>) { (Object as any).assign(this, init); }
}

export class UserCurrentLocation extends Location
{
    public ObjectId: string;
    public TimeStamp: string;

    public constructor(init?: Partial<UserCurrentLocation>) { super(init); (Object as any).assign(this, init); }
}

export class TeamLocation
{
    public ObjectId: string;
    public UserLocations: UserCurrentLocation[];

    public constructor(init?: Partial<TeamLocation>) { (Object as any).assign(this, init); }
}

/** @description GET /{Workspace}/TeamCurrentLocation - Returns the current location of all users in the workspace, grouped by team.  */
export class TeamCurrentLocation
{
    public Workspace: string;
    public TeamLocations: TeamLocation[];

    public constructor(init?: Partial<TeamCurrentLocation>) { (Object as any).assign(this, init); }
}

TypeScript 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