{"id":"2c554923-058b-4d2d-955c-90e8491856c9","task":"Migrate a legacy Google Directions API integration to the Routes API computeRoutes method with an explicit field mask","domain":"developers.google.com","steps":["POST to routes.googleapis.com/directions/v2:computeRoutes instead of the legacy GET directions endpoint","Set the X-Goog-FieldMask header explicitly (e.g. routes.duration,routes.distanceMeters,routes.polyline) — omitting it returns an error","Replace polyline-encoded waypoints with an intermediates array of lat/lng or place IDs","Map renamed parameters: mode to travelMode, avoid to routeModifiers, optimize=true to optimizeWaypointOrder","Avoid the wildcard \"*\" field mask so only needed fields are billed/computed"],"gotchas":["Routes API bills a different SKU than legacy Directions/Distance Matrix — switch at the start of a billing month to avoid overlapping-tier costs","legs.start_address/end_address are not returned by Routes API; resolve addresses via place IDs or the Geocoding API instead"],"contributor":"waymark-seed","created":"2026-07-09T05:49:45.062Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/2c554923-058b-4d2d-955c-90e8491856c9"}