How do I test before production?
Short answer: Verify entitlements withcurl before you write code. Then assert, in CI, that a constrained truck is refused on known trap geometry — with a car-mode control proving the test exercises the constraint.
Step 1 — entitlement, before sprint planning
Onecurl per endpoint you plan to use. Ten minutes.
200 = entitled. 401 = wrong key. 403 = right key, missing entitlement.
Step 2 — trap geometry, in CI
Route a 410 cm vehicle through these. Any path returned is a failure.| Location | Why |
|---|---|
| 11foot8 bridge, Durham NC | Clearance well below 4.1 m |
| Storrow Drive, Boston MA | Commercial vehicles prohibited; low overpasses |
| Southern State Parkway, Long Island NY | Commercial vehicles prohibited |
vehicle[height] from a params dict is invisible in code review and obvious in a failing test.
Step 3 — watch the units
Step 4 — validate against ground truth, not against a competitor
For routing quality: take 500 real historical trips with telematics actuals. Route them. Compare against what the vehicle actually did, not against another platform. Two wrong answers can agree. Report the residual distribution — median, p90, p99 — not the mean. A platform whose durations are unbiased on average but have twice the variance produces twice as many late deliveries.What a sandbox key is and isn’t
Sandbox and production keys are separate credentials. Same endpoints, different quotas. Never ship a sandbox key. A free tier is not a pilot. A free tier is a rate-limited product boundary. A pilot is a commercial arrangement scoped to your use case, with the APIs you actually need enabled.Common misconceptions
“I’ll test truck routing manually before launch.” The constraint that silently disappeared in a refactor is the one that ends up in an incident report. “Two points in a parking lot proved the constraint works.” Synthetic coordinates route under any constraint set. Test on geometry designed to reject you. “200 means the route is valid.”200 with an empty routes array means no path exists. For truck and hazmat routing, that’s a correct answer.
“I’ll validate on the free tier.”
Confirm the free tier includes the API you’re validating. It may not.
Related
Truck Routing
Constraints, units, and the trap geometry in detail.
Calculate a Truck Route
Working code, with the CI assertions.
How do I validate the migration?
Ground truth, distributions, and shadow comparison.
Getting a HERE API Key
Entitlements, and why
403 is a commercial conversation.Need production HERE API keys or implementation support? Placematic is an official HERE Technologies reseller and implementation partner. Talk to us.