Routes API
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
route.googleapis.com API를 사용합니다.
서비스: routes.googleapis.com
이 서비스를 호출하려면 Google에서 제공하는 클라이언트 라이브러리를 사용하는 것이 좋습니다. 애플리케이션에서 자체 라이브러리를 사용하여 이 서비스를 호출해야 한다면 API를 요청할 때 다음 정보를 사용하세요.
검색 문서
검색 문서는 머신에서 읽을 수 있는 사양이며 REST API를 설명하고 사용하는 데 참조할 수 있습니다. 또한 클라이언트 라이브러리, IDE 플러그인, 기타 Google API와 상호작용하는 도구를 빌드하는 데 사용됩니다. 하나의 서비스는 여러 개의 검색 문서를 제공할 수 있습니다. 이 서비스는 다음 검색 문서를 제공합니다.
서비스 엔드포인트
서비스 엔드포인트는 API 서비스의 네트워크 주소를 지정하는 기본 URL입니다. 하나의 서비스에 여러 서비스 엔드포인트가 있을 수 있습니다. 이 서비스에는 다음 서비스 엔드포인트가 포함되고, 그 아래의 모든 URI가 이 서비스 엔드포인트와 관련됩니다.
https://routes.googleapis.com
REST 리소스: v2
방법 |
computeRouteMatrix |
POST /distanceMatrix/v2:computeRouteMatrix
출발지와 목적지 목록을 가져와 각 출발지와 목적지 조합에 대한 경로 정보가 포함된 스트림을 반환합니다. |
computeRoutes |
POST /directions/v2:computeRoutes
특정 터미널 및 중간 경유지가 지정되면 기본 경로와 함께 선택적 대체 경로를 반환합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eThe Routes API provides access to functionalities for calculating distances and routes using the Google Maps platform.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can interact with the API using Google-provided client libraries or by directly making RESTful API requests.\u003c/p\u003e\n"],["\u003cp\u003eTwo core methods offered are \u003ccode\u003ecomputeRouteMatrix\u003c/code\u003e for calculating distances between multiple origins and destinations, and \u003ccode\u003ecomputeRoutes\u003c/code\u003e for generating detailed route information.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes a RESTful architecture and documentation is available through a discovery document.\u003c/p\u003e\n"],["\u003cp\u003eThe service endpoint for the Routes API is \u003ccode\u003ehttps://routes.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"]]],["The routes.googleapis.com API offers two primary methods: `computeRouteMatrix` and `computeRoutes`. `computeRouteMatrix` takes a list of origins and destinations, outputting route data for each combination. `computeRoutes` calculates the primary route and optional alternatives between specified waypoints. The service endpoint is `https://routes.googleapis.com`, and a discovery document is available at `https://routes.googleapis.com/$discovery/rest?version=v2` to facilitate building client tools. Google-provided client libraries are recommended.\n"],null,["# Routes API\n\nroutes.googleapis.com API.\n\n- [REST Resource: v2](#v2)\n\nService: routes.googleapis.com\n------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://routes.googleapis.com/$discovery/rest?version=v2\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://routes.googleapis.com`\n\nREST Resource: [v2](/maps/documentation/routes/reference/rest/v2/TopLevel)\n--------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [computeRouteMatrix](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRouteMatrix) | `POST /distanceMatrix/v2:computeRouteMatrix` Takes in a list of origins and destinations and returns a stream containing route information for each combination of origin and destination. |\n| [computeRoutes](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes) | `POST /directions/v2:computeRoutes` Returns the primary route along with optional alternate routes, given a set of terminal and intermediate waypoints. |"]]