Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [routing] adds support for specifying region_code in the ComputeRoutesRequest #4103

Merged
merged 2 commits into from
Mar 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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