Triage note (2026-04-23): RE-SCOPED to align with #54.
The original proposal ("set every routing threshold to its maximum allowed value for the US region, and ideally all regions") conflicts with #54's design philosophy of validated, opt-in safe defaults. Shipping max thresholds as the default exposes every deployment to DoS-shaped misuse and silent pathological routes.
New scope: implement this as a named preset continental in the #54 annotated-template system. Users who need cross-state or cross-country routing opt in by selecting the continental preset (or a region-specific variant like continental-usa). Default regions continue to use the safe standard preset.
Layering note (relates to #51): #51's Snowflake-side request-size guardrails must read their limits from the active ORS config so that when a user opts into continental, the guardrails widen automatically. Otherwise guardrails would reject calls the ORS server would accept — confusing and inconsistent. Single source of truth: the active ors-config.yml preset.
Revised acceptance criteria:
This ticket is blocked on #54 landing the template system. The workaround in the original body (RESUME_ALL_SERVICES, ORS_STATUS, SETUP_CITY_ORS) remains valid until then.
Problem
When calculating routes in the US region, requests intermittently fail with a connection_failed error from the ORS service function.
Example response
[
{
"RESPONSE": "{\n \"error\": \"connection_failed\",\n \"message\": \"Cannot connect to ORS (host: ors-service-unitedstatesofamerica). Region may not be provisioned or service is suspended. Try: 1) CALL CORE.RESUME_ALL_SERVICES() to resume, 2) SELECT CORE.ORS_STATUS(region) to check readiness, 3) CALL CORE.SETUP_CITY_ORS(region) to provision a new region.\",\n \"ors_host\": \"ors-service-unitedstatesofamerica\"\n}",
"GEOJSON": null,
"DISTANCE": null,
"DURATION": null
}
]
The ORS service for ors-service-unitedstatesofamerica appears to be reachable some of the time but drops connections on longer or larger-area US routes, suggesting that the configured routing thresholds (max travel time / max route distance) are too low for the continental US coverage area.
Proposed Fix
Set all routing thresholds for travel time and distance to the maximum allowed values in the ORS configuration for the US region (and ideally all regions), so that long cross-state routes don't get rejected or time out at the ORS layer.
Specifically, in the ORS ors-config.yml / profile configuration:
maximum_distance → max allowed value
maximum_distance_dynamic_weights → max allowed value
maximum_distance_avoid_areas → max allowed value
maximum_distance_alternative_routes → max allowed value
maximum_distance_round_trip_routes → max allowed value
maximum_waypoints → max allowed value
maximum_visited_nodes → max allowed value
maximum_snapping_radius → max allowed value
- Any
maximum_search_radius / travel-time equivalents for isochrones and matrix endpoints
Apply to all routing profiles (driving-car, driving-hgv, cycling-*, foot-*, etc.) for the US deployment, and rebuild/redeploy the ORS service image.
Acceptance Criteria
Workaround
Per the error message:
CALL CORE.RESUME_ALL_SERVICES() to resume suspended services
SELECT CORE.ORS_STATUS('unitedstatesofamerica') to check readiness
CALL CORE.SETUP_CITY_ORS('unitedstatesofamerica') to re-provision the region
Problem
When calculating routes in the US region, requests intermittently fail with a
connection_failederror from the ORS service function.Example response
[ { "RESPONSE": "{\n \"error\": \"connection_failed\",\n \"message\": \"Cannot connect to ORS (host: ors-service-unitedstatesofamerica). Region may not be provisioned or service is suspended. Try: 1) CALL CORE.RESUME_ALL_SERVICES() to resume, 2) SELECT CORE.ORS_STATUS(region) to check readiness, 3) CALL CORE.SETUP_CITY_ORS(region) to provision a new region.\",\n \"ors_host\": \"ors-service-unitedstatesofamerica\"\n}", "GEOJSON": null, "DISTANCE": null, "DURATION": null } ]The ORS service for
ors-service-unitedstatesofamericaappears to be reachable some of the time but drops connections on longer or larger-area US routes, suggesting that the configured routing thresholds (max travel time / max route distance) are too low for the continental US coverage area.Proposed Fix
Set all routing thresholds for travel time and distance to the maximum allowed values in the ORS configuration for the US region (and ideally all regions), so that long cross-state routes don't get rejected or time out at the ORS layer.
Specifically, in the ORS
ors-config.yml/ profile configuration:maximum_distance→ max allowed valuemaximum_distance_dynamic_weights→ max allowed valuemaximum_distance_avoid_areas→ max allowed valuemaximum_distance_alternative_routes→ max allowed valuemaximum_distance_round_trip_routes→ max allowed valuemaximum_waypoints→ max allowed valuemaximum_visited_nodes→ max allowed valuemaximum_snapping_radius→ max allowed valuemaximum_search_radius/ travel-time equivalents for isochrones and matrix endpointsApply to all routing profiles (
driving-car,driving-hgv,cycling-*,foot-*, etc.) for the US deployment, and rebuild/redeploy the ORS service image.Acceptance Criteria
connection_faileddue to threshold limitsbuild-routing-solutionskill referencesors-service-unitedstatesofamericahealth check remains green after redeployWorkaround
Per the error message:
CALL CORE.RESUME_ALL_SERVICES()to resume suspended servicesSELECT CORE.ORS_STATUS('unitedstatesofamerica')to check readinessCALL CORE.SETUP_CITY_ORS('unitedstatesofamerica')to re-provision the region