I would presume that the Geocoder version (google.maps.GeocoderRequest) would have the same role but it contains a placeId which is not compatible with the place_id parameters from the Geocode API.
I might be misinterpreting the types and maybe they should not be used like this.
I'm not sure if this is the right place to fill this issue since I could not open issues on https://github.com/googlemaps/DefinitelyTyped
I've been writing wrappers on two common APIs, the autocomplete and the Geocoder.
I noticed the following type on autocomplete (google.maps.places.AutocompletionRequest) which looks like it maps to the API's request parameters.
I would presume that the Geocoder version (google.maps.GeocoderRequest) would have the same role but it contains a
placeId
which is not compatible with theplace_id
parameters from the Geocode API.I might be misinterpreting the types and maybe they should not be used like this.