> Documentation index: https://developers.google.com/maps/documentation/llms.txt

Roads Management Insights is a geospatial analytics product that provides road congestion data (trip durations and speed reading intervals) for user-defined routes. You define routes with the Roads Selection API, and the data is delivered as accumulated BigQuery tables through Analytics Hub (Foundations package) and, with the Real-Time Operations package, as near-real-time Pub/Sub streams.

## Roads Management Insights: key facts

- **Product:** Roads Management Insights
- **Also known as:** RMI
- **Category:** Analytics
- **Platform:** Dataset
- **Launch stage:** GA
- **Lifecycle:** Active
- **Overview:** [Roads Management Insights overview](https://developers.google.com/maps/documentation/roads-management-insights/overview.md.txt)

## Roads Management Insights: when to use it

**Use Roads Management Insights when:**

- You manage a public road network or utility and need historical trip duration and congestion data for specific routes in BigQuery.
- You need near-real-time speed reading intervals and travel durations for monitored routes delivered through Pub/Sub for live operations.
- You need to find high-risk road segments, analyze traffic patterns, or measure the effect of road interventions in your jurisdiction.
**Don't use Roads Management Insights when:**

- You need routes or ETAs for end users in a consumer app, not monitoring of fixed road segments. Use [Routes API](https://developers.google.com/maps/documentation/routes/quick-reference.md.txt) instead.
- You need to snap GPS points to roads or get speed limits for individual road segments. Use [Roads API](https://developers.google.com/maps/documentation/roads/quick-reference.md.txt) instead.
- You aren't a public sector entity or infrastructure manager, or the roads are outside the territory you manage.

## Roads Management Insights: setup

- **Service to enable:** `roads.googleapis.com`
- **Authentication:** OAuth 2.0, Service account (API keys, including Maps Demo Keys, aren't supported)
- **Get started:** [Set up Roads Management Insights](https://developers.google.com/maps/documentation/roads-management-insights/cloud-setup.md.txt)
- **Reference:** [Roads Management Insights reference](https://developers.google.com/maps/documentation/roads-management-insights/reference/rest.md.txt)
- **Policies:** [Roads Management Insights policies](https://developers.google.com/maps/documentation/roads-management-insights/guidelines.md.txt)
- **Release notes:** [Roads Management Insights release notes](https://developers.google.com/maps/documentation/roads-management-insights/release-notes.md.txt)

## Roads Management Insights: common mistakes

- **Problem:** Routes on low-traffic roads fail the road utility check (`VALIDATION_ERROR_LOW_ROAD_USAGE`) at creation, or after four consecutive low-traffic quarterly evaluations, and get `STATE_INVALID`. Pub/Sub updates stop for these routes, though available data still goes to BigQuery. **Fix:** Delete the route and re-create it on higher-traffic roads, or include intersections in segments on less busy roads (see the usage guidelines). Check the `state` field with the `get` endpoint, or check the `routes_status` table. See [/maps/documentation/roads-management-insights/roads-selection/validation](https://developers.google.com/maps/documentation/roads-management-insights/roads-selection/validation.md.txt).
- **Problem:** A route that is partly or fully outside your defined jurisdiction is marked invalid and no data is retrieved for it. **Fix:** Keep route coordinates inside your managed jurisdiction, or request an approved adjacent-area buffer. See [/maps/documentation/roads-management-insights/guidelines](https://developers.google.com/maps/documentation/roads-management-insights/guidelines.md.txt).
- **Problem:** No historical data exists for a route before you submit it. Data collection starts only after the route is created. **Fix:** Create routes early and allow time for history to accumulate before you analyze it. See [/maps/documentation/roads-management-insights/guidelines](https://developers.google.com/maps/documentation/roads-management-insights/guidelines.md.txt).
- **Problem:** Requests without the `X-Goog-User-Project` header fail when you use user OAuth credentials. The header sets the billing and quota project. **Fix:** Send the `X-Goog-User-Project` header and an OAuth bearer token with the `cloud-platform` scope. You can omit the header only when you authenticate with a service account. See [/maps/documentation/roads-management-insights/roads-selection/request](https://developers.google.com/maps/documentation/roads-management-insights/roads-selection/request.md.txt).
- **Problem:** The setup and IAM role docs say to enable the "Roads Selection API" on your project, which is served by the Roads API service (`roads.googleapis.com`, titled "Roads API" in the Cloud Console API Library). **Fix:** Enable the Roads API service (`gcloud services enable roads.googleapis.com`), and grant `roles/roads.roadsSelectionAdmin` or `roles/roads.roadsSelectionViewer` along with `serviceusage.services.use` (or project Owner/Editor). See [/maps/documentation/roads-management-insights/configure-roles](https://developers.google.com/maps/documentation/roads-management-insights/configure-roles.md.txt).
- **Problem:** Routes with zero length or a computed driving distance over 100 km fail immediately with `INVALID_ARGUMENT`, and very short routes (\~100 m) without intersections on moderate- or lower-traffic roads can fail with `VALIDATION_ERROR_LOW_ROAD_USAGE`. **Fix:** Keep computed route length above zero and at most 100 km. On moderate- or lower-traffic roads, extend short segments to include intersections, use fixed routes with an intermediate waypoint, and verify `STATE_RUNNING`. See [/maps/documentation/roads-management-insights/roads-selection/create#route-length](https://developers.google.com/maps/documentation/roads-management-insights/roads-selection/create.md.txt#route-length).

## Roads Management Insights: legacy and deprecated features

- **`speed_reading_intervals` field (Pub/Sub messages and `recent_roads_data` table):** Deprecated since 2026-10-08. **Replacement:** `speed_reading_offsets` field. **Symptom:** The field might stop being populated on or after 2027-01-13, and legacy intervals never report `TRAFFIC_JAM_HEAVY`. See the [migration guide](https://developers.google.com/maps/documentation/roads-management-insights/real-time-data.md.txt#offset-based_speed_reading_intervals_and_field_migration).
- **`retrieval_time` field (real-time Pub/Sub messages):** Deprecated since 2026-10-08. **Replacement:** `retrieval_timestamp` field (RFC 3339 string). **Symptom:** The field might stop being populated on or after 2027-01-13. See the [migration guide](https://developers.google.com/maps/documentation/roads-management-insights/real-time-data.md.txt#offset-based_speed_reading_intervals_and_field_migration).
- **Nested `travel_duration` field (real-time Pub/Sub messages):** Deprecated since 2026-10-08. **Replacement:** `duration_in_seconds` and `static_duration_in_seconds` fields. **Symptom:** The field might stop being populated on or after 2027-01-13. See the [migration guide](https://developers.google.com/maps/documentation/roads-management-insights/real-time-data.md.txt#offset-based_speed_reading_intervals_and_field_migration).

## What you can do with Roads Management Insights

See the guides linked below for each task, or compare across products in the
[Capabilities Explorer](https://developers.google.com/maps/documentation/capabilities-explorer.md.txt).

- [Register and manage monitored road routes within a defined jurisdiction.](https://developers.google.com/maps/documentation/roads-management-insights/roads-selection/create.md.txt)
- [Query historical road travel durations in BigQuery.](https://developers.google.com/maps/documentation/roads-management-insights/accumulated-data.md.txt#historical_travel_time_table)
- [Inspect monitored route validation status and route geometry metadata in BigQuery.](https://developers.google.com/maps/documentation/roads-management-insights/accumulated-data.md.txt#routes_status_table)
- [Stream near-real-time route travel durations and speed reading intervals over Pub/Sub.](https://developers.google.com/maps/documentation/roads-management-insights/real-time-data.md.txt#create_a_travel_duration_and_speed_reading_intervals_pubsub_subscription) **Note:** Requires the Real-Time Operations package.