{"uid":"cap_Isx7zz8kIxe1q0QUFMEg1","slug":"google-maps-v2-computeroutematrix-197b2816","name":"Google Maps ComputeRouteMatrix","description":"Compute distance matrix","url":"https://googlemaps.mpp.tempo.xyz/routes/distanceMatrix/v2:computeRouteMatrix?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["location","size","heading","pitch"],"properties":{"size":{"type":"string"},"pitch":{"type":"string"},"heading":{"type":"string"},"location":{"type":"string"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["maps","google","geocoding","directions","places","routes","tiles","weather","air-quality","solar","roads","pollen","geolocation","aerial","validation","data"],"displayCostAmount":"0.005000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005000/call","primary":{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"mpp","network":"tempo","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_z9WAjjGBgvF9x1tvYtXmI","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":"Google Maps","brandSlug":"google-maps","brandBaseUrl":"https://developers.google.com/maps","brandDocsUrl":"https://developers.google.com/maps","whatItDoes":"Computes a matrix of travel distances and durations between multiple origins and destinations using Google Maps routing","exampleAgentPrompt":"Can you calculate the driving distances and travel times from our 3 warehouse locations in Chicago, Detroit, and Cleveland to 5 delivery stops in Columbus, Pittsburgh, Indianapolis, Cincinnati, and Louisville — using the fastest routes by road?","exampleUseCases":[{"title":"Nearest store finder for customers","prompt":"I have 4 customer locations in the Seattle area and 8 store branches across the city — can you figure out which store is closest in drive time to each customer so I can recommend the best one to visit?"},{"title":"Delivery fleet routing optimization","prompt":"We have 6 driver starting points across London and 10 parcel drop-off addresses for today — can you compute the driving times and distances between all of them so we can figure out the most efficient way to assign deliveries to drivers?"},{"title":"Logistics hub selection analysis","prompt":"We're deciding where to open a new distribution center and have 5 candidate warehouse locations and 12 major retail partners across the Midwest — can you calculate road distances and travel times between every warehouse candidate and each retail partner so we can pick the best hub location?"}],"resultDescription":"Returns a stream of RouteMatrixElement objects, each containing the travel duration, distance in meters, status, and optionally a route token for every origin-destination pair in the matrix. Covers all combinations of the provided origins and destinations.","failureModes":["Invalid or unresolvable origin/destination coordinates returns a per-element NOT_FOUND status","Too many origins or destinations exceeds API limits and returns a 400 error","Unsupported travel mode or routing preference combination returns a 400 INVALID_ARGUMENT","Missing required origins or destinations fields returns a 400 error","Network timeout on large matrices returns a 503 or partial stream","Billing or quota exceeded returns a 429 RESOURCE_EXHAUSTED error"],"whenToPreferThis":"Use this endpoint when you need to compute travel times or distances between multiple origins and multiple destinations simultaneously — i.e. an N×M distance matrix. It is more efficient than calling the single-route directions endpoint repeatedly. Ideal for logistics optimization, nearest-location finders, delivery routing, and fleet management where batch distance data is needed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:05:08.950Z","isFirstParty":false,"canonicalSlug":"google-maps-v2-computeroutematrix-197b2816"}