Skip to content

Commit

Permalink
fix: Changes "query" to "textQuery" (#1655)
Browse files Browse the repository at this point in the history
* Changes "query" to "textQuery"

* Update place-search, changing "query" to "textQuery"

* Update index.ts
  • Loading branch information
willum070 committed Jan 22, 2024
1 parent ba3fada commit 37c290d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/place-text-search/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function findPlaces() {
//@ts-ignore
const { AdvancedMarkerElement } = await google.maps.importLibrary("marker") as google.maps.MarkerLibrary;
const request = {
query: 'Tacos in Mountain View',
textQuery: 'Tacos in Mountain View',
fields: ['displayName', 'location', 'businessStatus'],
includedType: 'restaurant',
isOpenNow: true,
Expand Down Expand Up @@ -71,4 +71,4 @@ async function findPlaces() {
initMap();
// [END maps_place_text_search]

export { };
export { };

0 comments on commit 37c290d

Please sign in to comment.