add Geotag
Content copied to clipboard
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)
Content copied to clipboard
Adds a new geotag with order status.
Return
current location if success or LocationError if failure
Parameters
order Handle
order handle
order Status
status of your order: clockIn, clockOut
metadata
geotag metadata JSON
Content copied to clipboard
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
expected Location
expected location
final static Result<HyperTrack.LocationWithDeviation, HyperTrack.LocationError> addGeotag( String orderHandle, HyperTrack.OrderStatus orderStatus, Json.Object metadata, HyperTrack.Location expectedLocation)
Content copied to clipboard
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
order Handle
order handle
order Status
status of your order: clockIn, clockOut
metadata
geotag metadata JSON
expected Location
expected location