google_maps_webservice icon indicating copy to clipboard operation
google_maps_webservice copied to clipboard

Add more fields to PlaceDetails class

Open benji-farquhar opened this issue 2 years ago • 2 comments

In GoogleMapsPlaces.getDetailsByPlaceId, in the file lib/src/places.dart we can see that some places have a lot more fields than others, that are not in the PlaceDetails class, so cannot be captured (they are thrown away). Here is an image of an actual http response:

Screenshot 2023-03-25 at 9 32 27 PM

We should be able to capture all fields returned by the web request in PlaceDetails.

benji-farquhar avatar Mar 25 '23 08:03 benji-farquhar

I've done a PR for this.

benji-farquhar avatar Mar 25 '23 21:03 benji-farquhar

Try with this google_maps_apis which is a fork of this package but with some improvements and bug fixes, including the PlaceDetails fields which are up to date with Google docs.

luis901101 avatar Oct 19 '23 01:10 luis901101