Dammyololade / flutter_polyline_points

A flutter plugin that's decodes encoded google poly line string into list of geo-coordinates suitable for showing route/polyline on maps
MIT License
105 stars 130 forks source link

[Feature Request] Include Directions API Map Boundary #60

Closed connlaoi closed 3 years ago

connlaoi commented 3 years ago

See this stack overflow link for reference: https://stackoverflow.com/a/66667385

Each Directions API response should include the provided map boundary by default. Including this in the PolylineResult object would provide an extremely useful access point and save some minor but unnecessary additional processing on the client device.

Additional suggestion, since this library is built specifically to use the GCP Directions API, it would also be great if it used the LatLng object provided here: 'package:google_maps_flutter_platform_interface/src/types/location.dart' by default - instead of a custom implementation. It would reduce boilerplate mapping coordinates between the polyline request and the map itself.

This seems like a simple request from my research, and if I had more time I would submit a PR with the changes. If you agree with this feature request (or both) could you do your best to provide a timeline for release so that I can plan development accordingly.

Thanks for your time, and also for providing this package. :)