addGeotag

@Deprecated(message = "Use new addGeotag with orderHandle and orderStatus")
final static Result<HyperTrack.Location, HyperTrack.LocationError> addGeotag(Json.Object data)

Adds a new geotag.

Return

current location if success or LocationError if failure

Parameters

data

geotag metadata JSON


final static Result<HyperTrack.Location, HyperTrack.LocationError> addGeotag(    String orderHandle,     HyperTrack.OrderStatus orderStatus,     Json.Object metadata)

Adds a new geotag with order status.

Return

current location if success or LocationError if failure

Parameters

orderHandle

order handle

orderStatus

status of your order: clockIn, clockOut

metadata

geotag metadata JSON


@Deprecated(message = "Use new addGeotag with orderHandle and orderStatus")
final static Result<HyperTrack.LocationWithDeviation, HyperTrack.LocationError> addGeotag(Json.Object data, HyperTrack.Location expectedLocation)

Adds a new geotag with expected location.

Return

current location and deviation from the expected one if success or LocationError if failure

Parameters

data

geotag metadata JSON

expectedLocation

expected location


final static Result<HyperTrack.LocationWithDeviation, HyperTrack.LocationError> addGeotag(    String orderHandle,     HyperTrack.OrderStatus orderStatus,     Json.Object metadata,     HyperTrack.Location expectedLocation)

Adds a new geotag with expected location and order status.

Return

current location and deviation from the expected one if success or LocationError if failure

Parameters

orderHandle

order handle

orderStatus

status of your order: clockIn, clockOut

metadata

geotag metadata JSON

expectedLocation

expected location