[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-19 UTC."],[],[],null,["# Roads API\n\nFetch Google roads using a viewport, road ID, or latitude/longitude coordinates.\n\nService: roads.googleapis.com\n-----------------------------\n\nThe Service name `roads.googleapis.com` is needed to create RPC client stubs.\n\n[google.maps.roads.selection.v1.RoadsSelection](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection)\n-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [BatchCreateSelectedRoutes](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection.BatchCreateSelectedRoutes) | Creates multiple SelectedRoutes and starts a schedule to periodically retrieve cache information for each of the routes. |\n| [CreateSelectedRoute](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection.CreateSelectedRoute) | Creates a SelectedRoute and starts a schedule to periodically retrieve cache information for the route. |\n| [DeleteSelectedRoute](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection.DeleteSelectedRoute) | Deletes the specified SelectedRoute for the specified project. |\n| [GetSelectedRoute](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection.GetSelectedRoute) | Gets a SelectedRoute as specified by its name. |\n| [ListSelectedRoutes](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.selection.v1#google.maps.roads.selection.v1.RoadsSelection.ListSelectedRoutes) | Lists all SelectedRoutes for the specified project with pagination. |\n\n[google.maps.roads.v1op.RoadsService](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService)\n-------------------------------------------------------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------|\n| [ListNearestRoads](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService.ListNearestRoads) | This method takes a list of latitude,longitude points and snaps them each to their nearest road. |\n| [ListSpeedLimits](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService.ListSpeedLimits) | This method takes a sequence of place IDs and returns the speed limit for each road segment. |\n| [ListTrafficSpeeds](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService.ListTrafficSpeeds) | This method takes a sequence of place IDs and a list of types of speeds and returns those speeds for each road segment. |\n| [ListTrafficSpeedsForTile](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService.ListTrafficSpeedsForTile) | |\n| [SnapToRoads](/maps/documentation/roads-management-insights/reference/rpc/google.maps.roads.v1op#google.maps.roads.v1op.RoadsService.SnapToRoads) | This method takes a sequence of latitude,longitude points and snaps them to the most likely road segments. |"]]