Skip to content

Commit

Permalink
feat(places): update the API
Browse files Browse the repository at this point in the history
#### places:v1

The following keys were added:
- schemas.GoogleMapsPlacesV1SearchTextRequest.properties.evOptions.$ref
- schemas.GoogleMapsPlacesV1SearchTextRequest.properties.evOptions.description
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.description
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.id
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.connectorTypes.description
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.connectorTypes.items.enum
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.connectorTypes.items.enumDescriptions
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.connectorTypes.items.type
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.connectorTypes.type
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.minimumChargingRateKw.description
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.minimumChargingRateKw.format
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.properties.minimumChargingRateKw.type
- schemas.GoogleMapsPlacesV1SearchTextRequestEVOptions.type
  • Loading branch information
yoshi-automation authored and sofisl committed Mar 14, 2024
1 parent 4793392 commit 6eba24a
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
49 changes: 48 additions & 1 deletion discovery/places-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
}
}
},
"revision": "20240221",
"revision": "20240312",
"rootUrl": "https://places.googleapis.com/",
"schemas": {
"GoogleGeoTypeViewport": {
Expand Down Expand Up @@ -1458,6 +1458,10 @@
"description": "Request proto for SearchText. ",
"id": "GoogleMapsPlacesV1SearchTextRequest",
"properties": {
"evOptions": {
"$ref": "GoogleMapsPlacesV1SearchTextRequestEVOptions",
"description": "Optional. Set the searchable EV options of a place search request."
},
"includedType": {
"description": "The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.",
"type": "string"
Expand Down Expand Up @@ -1540,6 +1544,49 @@
},
"type": "object"
},
"GoogleMapsPlacesV1SearchTextRequestEVOptions": {
"description": "Searchable EV options of a place search request.",
"id": "GoogleMapsPlacesV1SearchTextRequestEVOptions",
"properties": {
"connectorTypes": {
"description": "Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types are filter out.",
"items": {
"enum": [
"EV_CONNECTOR_TYPE_UNSPECIFIED",
"EV_CONNECTOR_TYPE_OTHER",
"EV_CONNECTOR_TYPE_J1772",
"EV_CONNECTOR_TYPE_TYPE_2",
"EV_CONNECTOR_TYPE_CHADEMO",
"EV_CONNECTOR_TYPE_CCS_COMBO_1",
"EV_CONNECTOR_TYPE_CCS_COMBO_2",
"EV_CONNECTOR_TYPE_TESLA",
"EV_CONNECTOR_TYPE_UNSPECIFIED_GB_T",
"EV_CONNECTOR_TYPE_UNSPECIFIED_WALL_OUTLET"
],
"enumDescriptions": [
"Unspecified connector.",
"Other connector types.",
"J1772 type 1 connector.",
"IEC 62196 type 2 connector. Often referred to as MENNEKES.",
"CHAdeMO type connector.",
"Combined Charging System (AC and DC). Based on SAE. Type-1 J-1772 connector",
"Combined Charging System (AC and DC). Based on Type-2 Mennekes connector",
"The generic TESLA connector. This is NACS in the North America but can be non-NACS in other parts of the world (e.g. CCS Combo 2 (CCS2) or GB/T). This value is less representative of an actual connector type, and more represents the ability to charge a Tesla brand vehicle at a Tesla owned charging station.",
"GB/T type corresponds to the GB/T standard in China. This type covers all GB_T types.",
"Unspecified wall outlet."
],
"type": "string"
},
"type": "array"
},
"minimumChargingRateKw": {
"description": "Optional. Filtering places by minimum charging rate. Any places with charging a rate less than the minimum charging rate are filtered out.",
"format": "double",
"type": "number"
}
},
"type": "object"
},
"GoogleMapsPlacesV1SearchTextRequestLocationBias": {
"description": "The region to search. This location serves as a bias which means results around given location might be returned.",
"id": "GoogleMapsPlacesV1SearchTextRequestLocationBias",
Expand Down
17 changes: 17 additions & 0 deletions src/apis/places/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,10 @@ export namespace places_v1 {
* Request proto for SearchText.
*/
export interface Schema$GoogleMapsPlacesV1SearchTextRequest {
/**
* Optional. Set the searchable EV options of a place search request.
*/
evOptions?: Schema$GoogleMapsPlacesV1SearchTextRequestEVOptions;
/**
* The requested place type. Full list of types supported: https://developers.google.com/maps/documentation/places/web-service/place-types. Only support one included type.
*/
Expand Down Expand Up @@ -1048,6 +1052,19 @@ export namespace places_v1 {
*/
textQuery?: string | null;
}
/**
* Searchable EV options of a place search request.
*/
export interface Schema$GoogleMapsPlacesV1SearchTextRequestEVOptions {
/**
* Optional. The list of preferred EV connector types. A place that does not support any of the listed connector types are filter out.
*/
connectorTypes?: string[] | null;
/**
* Optional. Filtering places by minimum charging rate. Any places with charging a rate less than the minimum charging rate are filtered out.
*/
minimumChargingRateKw?: number | null;
}
/**
* The region to search. This location serves as a bias which means results around given location might be returned.
*/
Expand Down

0 comments on commit 6eba24a

Please sign in to comment.