diff --git a/places.go b/places.go index 4826718..d95db03 100644 --- a/places.go +++ b/places.go @@ -920,6 +920,9 @@ type FindPlaceFromTextRequest struct { // should be filled in. Fields []PlaceSearchFieldMask + // Language specifies the language in which to return results. Optional. + Language string + // LocationBias is the type of location bias to apply to this request LocationBias FindPlaceFromTextLocationBiasType @@ -950,6 +953,10 @@ func (r *FindPlaceFromTextRequest) params() url.Values { q.Set("fields", strings.Join(placeSearchFieldMasksAsStringArray(r.Fields), ",")) } + if r.Language != "" { + q.Set("language", r.Language) + } + if r.LocationBias != "" { switch r.LocationBias { case FindPlaceFromTextLocationBiasIP: