Class protos.google.maps.places.v1.Places (1.6.0)

Represents a Places

Inheritance

$protobuf.rpc.Service > protos.google.maps.places.v1.Places

Package

@googlemaps/places

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Places service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

autocompletePlaces(request, callback)

public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest, callback: google.maps.places.v1.Places.AutocompletePlacesCallback): void;

Calls AutocompletePlaces.

Parameters
Name Description
request IAutocompletePlacesRequest

AutocompletePlacesRequest message or plain object

callback AutocompletePlacesCallback

Node-style callback called with the error, if any, and AutocompletePlacesResponse

Returns
Type Description
void

autocompletePlaces(request)

public autocompletePlaces(request: google.maps.places.v1.IAutocompletePlacesRequest): Promise<google.maps.places.v1.AutocompletePlacesResponse>;

Calls AutocompletePlaces.

Parameter
Name Description
request IAutocompletePlacesRequest

AutocompletePlacesRequest message or plain object

Returns
Type Description
Promise<google.maps.places.v1.AutocompletePlacesResponse>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Places;

Creates new Places service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
Places

RPC service. Useful where requests and/or responses are streamed.

getPhotoMedia(request, callback)

public getPhotoMedia(request: google.maps.places.v1.IGetPhotoMediaRequest, callback: google.maps.places.v1.Places.GetPhotoMediaCallback): void;

Calls GetPhotoMedia.

Parameters
Name Description
request IGetPhotoMediaRequest

GetPhotoMediaRequest message or plain object

callback GetPhotoMediaCallback

Node-style callback called with the error, if any, and PhotoMedia

Returns
Type Description
void

getPhotoMedia(request)

public getPhotoMedia(request: google.maps.places.v1.IGetPhotoMediaRequest): Promise<google.maps.places.v1.PhotoMedia>;

Calls GetPhotoMedia.

Parameter
Name Description
request IGetPhotoMediaRequest

GetPhotoMediaRequest message or plain object

Returns
Type Description
Promise<google.maps.places.v1.PhotoMedia>

Promise

getPlace(request, callback)

public getPlace(request: google.maps.places.v1.IGetPlaceRequest, callback: google.maps.places.v1.Places.GetPlaceCallback): void;

Calls GetPlace.

Parameters
Name Description
request IGetPlaceRequest

GetPlaceRequest message or plain object

callback GetPlaceCallback

Node-style callback called with the error, if any, and Place

Returns
Type Description
void

getPlace(request)

public getPlace(request: google.maps.places.v1.IGetPlaceRequest): Promise<google.maps.places.v1.Place>;

Calls GetPlace.

Parameter
Name Description
request IGetPlaceRequest

GetPlaceRequest message or plain object

Returns
Type Description
Promise<google.maps.places.v1.Place>

Promise

searchNearby(request, callback)

public searchNearby(request: google.maps.places.v1.ISearchNearbyRequest, callback: google.maps.places.v1.Places.SearchNearbyCallback): void;

Calls SearchNearby.

Parameters
Name Description
request ISearchNearbyRequest

SearchNearbyRequest message or plain object

callback SearchNearbyCallback

Node-style callback called with the error, if any, and SearchNearbyResponse

Returns
Type Description
void

searchNearby(request)

public searchNearby(request: google.maps.places.v1.ISearchNearbyRequest): Promise<google.maps.places.v1.SearchNearbyResponse>;

Calls SearchNearby.

Parameter
Name Description
request ISearchNearbyRequest

SearchNearbyRequest message or plain object

Returns
Type Description
Promise<google.maps.places.v1.SearchNearbyResponse>

Promise

searchText(request, callback)

public searchText(request: google.maps.places.v1.ISearchTextRequest, callback: google.maps.places.v1.Places.SearchTextCallback): void;

Calls SearchText.

Parameters
Name Description
request ISearchTextRequest

SearchTextRequest message or plain object

callback SearchTextCallback

Node-style callback called with the error, if any, and SearchTextResponse

Returns
Type Description
void

searchText(request)

public searchText(request: google.maps.places.v1.ISearchTextRequest): Promise<google.maps.places.v1.SearchTextResponse>;

Calls SearchText.

Parameter
Name Description
request ISearchTextRequest

SearchTextRequest message or plain object

Returns
Type Description
Promise<google.maps.places.v1.SearchTextResponse>

Promise