LoritoTiago / awesome_place_search

The awesome_place_search package is a Flutter library that provides a user interface for searching places using the Google Places API. With this package, you can easily implement a location search bar that shows suggestions as the user types.
MIT License
6 stars 7 forks source link

Integrate google_api_headers package for Google API Headers Support #25

Open qrvello opened 3 days ago

qrvello commented 3 days ago

Hello, I’d like to suggest adding the google_api_headers package to improve functionality when calling Google APIs with an app-restricted API key.

Reason

This enhancement would streamline API calls by automatically handling header generation for Google API requests, improving both security and ease of integration for users.

Benefits

• Simplifies the process of calling Google APIs with restricted API keys.
• Increases the security of API interactions by automatically generating headers.

Suggested steps for implementation

1. Add google_api_headers to the pubspec.yaml file as a dependency.
2. Update any methods that make Google API requests to use headers generated by google_api_headers.

Reference

Google API Headers package on pub.dev

qrvello commented 3 days ago

I created this PR.

https://github.com/LoritoTiago/awesome_place_search/pull/26