{"slug":"ort-halowerk-com-v1-eta-from-positions-34885d","title":"Estimate the arrival time at a customer from recent GPS positions","host":"ort.halowerk.com","method":"POST","resource":"https://ort.halowerk.com/v1/eta-from-positions","category":"other","description":"Estimate the arrival time at a customer from recent GPS positions: remaining distance along a route or straight line, average speed of the recent window, ETA with early/late band and check against a delivery window. Remaining distance is measured along the supplied route from the projection of the l","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":7,"latency_ms_median":1216,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"destination":{"lat":52,"lon":7.5},"positions":[{"lat":52,"lon":7,"t":"2026-10-05T08:00:00Z"},{"lat":52,"lon":7.073,"t":"2026-10-05T08:05:00Z"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"arrival_radius_m":{"default":200,"description":"Distance at which the vehicle counts as arrived.","maximum":5000,"minimum":10,"type":"number"},"destination":{"additionalProperties":false,"description":"Customer location.","properties":{"lat":{"description":"Latitude in WGS84 degrees.","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude in WGS84 degrees.","maximum":180,"minimum":-180,"type":"number"}},"required":["lat","lon"],"type":"object"},"detour_factor":{"default":1,"description":"Factor applied to the straight-line distance when no route is given (your assumption; 1 = lower bound).","maximum":3,"minimum":1,"type":"number"},"positions":{"description":"Recent GPS fixes with timestamps t, in time order.","items":{"additionalProperties":false,"properties":{"lat":{"description":"Latitude (WGS84).","maximum":90,"minimum":-90,"type":"number"},"lon":{"description":"Longitude (WGS84).","maximum":180,"minimum":-180,"type":"number"},"t":{"description":"Timestamp (ISO 8601 with time zone), optional.","maxLength":40,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?(?:Z|[+-]\\d{2}:\\d{2})$","type":"string"}},"required":["lat","lon"],"type":"object"},"maxItems":5000,"minItems":2,"type":"array"},"route":{"description":"Optional planned route [lon, lat] ending at the destination.","items":{"description":"[longitude, latitude] in WGS84 degrees.","items":{"type":"number"},"maxItems":2,"minItems":2,"type":"array"},"maxItems":20000,"minItems":2,"type":"array"},"stop_minutes":{"default":0,"description":"Planned stops before arrival, added to the ETA.","maximum":1440,"minimum":0,"type":"integer"},"time_window":{"additionalProperties":false,"description":"Customer delivery window.","properties":{"from":{"description":"Window start.","maxLength":40,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?(?:Z|[+-]\\d{2}:\\d{2})$","type":"string"},"to":{"description":"Window end.","maxLength":40,"pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(?::\\d{2}(?:\\.\\d{1,3})?)?(?:Z|[+-]\\d{2}:\\d{2})$","type":"string"}},"required":["from","to"],"type":"object"},"window_minutes":{"default":30,"description":"Recent window for the speed estimate.","maximum":240,"minimum":5,"type":"integer"}},"required":["positions","destination"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-27","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1162,"error":null},{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1216,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1222,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1321,"error":null},{"day":"2026-11-23","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1317,"error":null},{"day":"2026-11-22","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1192,"error":null},{"day":"2026-11-21","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":1200,"error":null}],"description_full":"Estimate the arrival time at a customer from recent GPS positions: remaining distance along a route or straight line, average speed of the recent window, ETA with early/late band and check against a delivery window. Remaining distance is measured along the supplied route from the projection of the latest position to the route end, or as great-circle distance × detour factor without a route (straight line = lower bound).","last_updated":"2026-11-20T23:17:25.997Z","schemes":["exact"]}