Skip to content

Incorrect type in google.maps.GeocoderRequest #77

@nbouvrette

Description

@nbouvrette

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 the place_id parameters from the Geocode API.

I might be misinterpreting the types and maybe they should not be used like this.

Metadata

Metadata

Assignees

Labels

triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions