Skip to content

Commit

Permalink
feat: [routing] adds support for specifying region_code in the Comput…
Browse files Browse the repository at this point in the history
…eRoutesRequest (#4103)

* feat: adds support for specifying region_code in the ComputeRoutesRequest
feat: adds support for specifying region_code and language_code in the ComputeRouteMatrixRequest

PiperOrigin-RevId: 517493769

Source-Link: googleapis/googleapis@8fa8ae4

Source-Link: googleapis/googleapis-gen@45fd970
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtcm91dGluZy8uT3dsQm90LnlhbWwiLCJoIjoiNDVmZDk3MGIxYTE1ODkzN2RlYTU1NTRkNWI1ZWU0Y2NmNWRiNzgwZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Mar 21, 2023
1 parent 10afbc0 commit 1106a82
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,11 @@ message ComputeRoutesRequest {
// display language is inferred from the location of the route request.
string language_code = 10 [(google.api.field_behavior) = OPTIONAL];

// Optional. The region code, specified as a ccTLD ("top-level domain")
// two-character value. For more information see
// https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
string region_code = 16 [(google.api.field_behavior) = OPTIONAL];

// Optional. Specifies the units of measure for the display fields. This
// includes the `instruction` field in `NavigationInstruction`. The units of
// measure used for the route, leg, step distance, and duration are not
Expand Down Expand Up @@ -299,6 +304,19 @@ message ComputeRouteMatrixRequest {
google.protobuf.Timestamp departure_time = 5
[(google.api.field_behavior) = OPTIONAL];

// Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
// information, see
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
// [Language Support](https://developers.google.com/maps/faq#languagesupport)
// for the list of supported languages. When you don't provide this value, the
// display language is inferred from the location of the first origin.
string language_code = 6 [(google.api.field_behavior) = OPTIONAL];

// Optional. The region code, specified as a ccTLD ("top-level domain")
// two-character value. For more information see
// https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
string region_code = 9 [(google.api.field_behavior) = OPTIONAL];

// Optional. A list of extra computations which may be used to complete the
// request. Note: These extra computations may return extra fields on the
// response. These extra fields must also be specified in the field mask to be
Expand Down
18 changes: 18 additions & 0 deletions packages/google-maps-routing/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 69 additions & 0 deletions packages/google-maps-routing/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions packages/google-maps-routing/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ function main(origins, destinations) {
* has already occurred, the request fails.
*/
// const departureTime = {}
/**
* Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See
* Language Support (https://developers.google.com/maps/faq#languagesupport)
* for the list of supported languages. When you don't provide this value, the
* display language is inferred from the location of the first origin.
*/
// const languageCode = 'abc123'
/**
* Optional. The region code, specified as a ccTLD ("top-level domain")
* two-character value. For more information see
* https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains#Country_code_top-level_domains
*/
// const regionCode = 'abc123'
/**
* Optional. A list of extra computations which may be used to complete the
* request. Note: These extra computations may return extra fields on the
Expand Down
Loading

0 comments on commit 1106a82

Please sign in to comment.