Skip to content

Commit

Permalink
updated examples for Get-GMapPlaceDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
techthoughts2 committed Dec 23, 2023
1 parent 2e38915 commit a59fa70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docs/Get-GMapPlaceDetail.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,27 @@ Retrieves detailed place information including contact details for the specified

### EXAMPLE 3
```
Get-GMapPlaceDetail -PlaceID 'ChIJf9Yxhme9XIYRkXo-Bl62Q10' -Contact -Atmosphere -Language en -GoogleAPIKey $googleAPIKey
Get-GMapPlaceDetail -PlaceID 'ChIJf9Yxhme9XIYRkXo-Bl62Q10' -Contact -Atmosphere -ReviewSort Newest -Language en -GoogleAPIKey $googleAPIKey
```

Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID.
Reviews are sorted by newest.

### EXAMPLE 4
```
$getGMapPlaceDetailsSplat = @{
PlaceID = 'ChIJf9Yxhme9XIYRkXo-Bl62Q10'
Contact = $true
Atmosphere = $true
ReviewSort = 'Newest'
Language = 'en'
GoogleAPIKey = $googleAPIKey
}
Get-GMapPlaceDetail @getGMapPlaceDetailsSplat
```

Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID.
Reviews are sorted by newest.

## PARAMETERS

Expand Down
7 changes: 4 additions & 3 deletions src/pwshPlaces/Public/Get-GMapPlaceDetail.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,21 @@
Retrieves detailed place information including contact details for the specified place ID.
.EXAMPLE
Get-GMapPlaceDetail -PlaceID 'ChIJf9Yxhme9XIYRkXo-Bl62Q10' -Contact -Atmosphere -Language en -GoogleAPIKey $googleAPIKey
Get-GMapPlaceDetail -PlaceID 'ChIJf9Yxhme9XIYRkXo-Bl62Q10' -Contact -Atmosphere -ReviewSort Newest -Language en -GoogleAPIKey $googleAPIKey
Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID.
Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID. Reviews are sorted by newest.
.EXAMPLE
$getGMapPlaceDetailsSplat = @{
PlaceID = 'ChIJf9Yxhme9XIYRkXo-Bl62Q10'
Contact = $true
Atmosphere = $true
ReviewSort = 'Newest'
Language = 'en'
GoogleAPIKey = $googleAPIKey
}
Get-GMapPlaceDetail @getGMapPlaceDetailsSplat
Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID.
Returns extensive place details including contact info, reviews, ratings, and pricing, in English, for the given place ID. Reviews are sorted by newest.
.PARAMETER PlaceID
The unique identifier of a place in Google Maps.
.PARAMETER Contact
Expand Down

0 comments on commit a59fa70

Please sign in to comment.