Location Events API 1.0.0

API for publishing location-based tracking events in the PositionPal system. This WebSocket API allows real-time communication for location tracking, routing, and SOS alerts. Clients can send various events and receive user updates from the server.

  • #real-time
  • #location
  • #tracking

Servers

  • ws://api.positionpal.com/ws 1.0production
    object

Operations

  • SEND

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Send sampled location updates to the server.

    Operation IDonSampledLocation

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    Sampled Location UpdateSampledLocation

    Regular location update from a user

    Message IDSampledLocation
    object

    Examples

  • SEND

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Send routing start events to the server.

    Operation IDonRoutingStarted

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    Routing Started EventRoutingStarted

    Event when a user starts navigation

    Message IDRoutingStarted
    object

    Examples

  • SEND

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Send routing stop events to the server.

    Operation IDonRoutingStopped

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    Routing Stopped EventRoutingStopped

    Event when a user stops navigation

    Message IDRoutingStopped
    object

    Examples

  • SEND

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Send SOS alerts to the server.

    Operation IDonSOSAlertTriggered

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    SOS Alert TriggeredSOSAlertTriggered

    Emergency alert triggered by user

    Message IDSOSAlertTriggered
    object

    Examples

  • SEND

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Send SOS alert stops to the server.

    Operation IDonSOSAlertStopped

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    SOS Alert StoppedSOSAlertStopped

    Emergency alert cancelled by user

    Message IDSOSAlertStopped
    object

    Examples

  • RECEIVE

    Main WebSocket channel for all location-based events. Clients can send location updates, routing events, and SOS alerts. The server will send user status updates through this channel.

    Receive user update events from the server.

    Operation IDonUserUpdate

    Available only on servers:

    object
    groupId
    required
    string

    the id of the group

    userId
    required
    string

    the id of the user

    Accepts the following message:

    User Status UpdateUserUpdate

    Server-sent update about a user's status

    Message IDUserUpdate
    object

    Examples

Schemas

  • UserId
    string

    Unique identifier for a user.

  • GroupId
    string

    Unique identifier for a group.

  • object
  • object
  • RoutingMode
    string
      Allowed values:
    • "WALKING"
    • "DRIVING"
    • "CYCLING"
  • UserState
    string

    The current state of a user in the system

      Allowed values:
    • "ACTIVE"
    • "INACTIVE"
    • "ROUTING"
    • "WARNING"
    • "SOS"
  • object
  • object
  • object
  • object
  • object
  • object