flutter_google_places_sdk icon indicating copy to clipboard operation
flutter_google_places_sdk copied to clipboard

Please add support for Geocoding and Time Zones APIs

Open lukehutch opened this issue 1 year ago • 5 comments

Can you please add support for the Geocoding and Time Zones APIs to flutter_google_places_sdk?

Google Places APIs frequently need to be used with forward or reverse geocoding, and timezone lookup. It would be great to have support for these APIs in flutter_google_places_sdk, since it's the only library providing native support for the Places APIs. Right now I have to use an Android or iOS key to use flutter_google_places_sdk, and a separate Web API key to access the other APIs.

lukehutch avatar Jul 19 '24 07:07 lukehutch

@lukehutch I was looking into the geocoding client, but it seems there's no native client in Android, or at least I could not find one. Hence adding support for it wouldn't be much help.

Unless I missed it and you are aware of one?

matanshukry avatar Apr 19 '25 10:04 matanshukry

https://developer.android.com/reference/android/location/Geocoder

Will this one work ?

pndychrg avatar Jun 05 '25 08:06 pndychrg

@pndychrg For a geocoding library in general yes, but then it's not related to this library. This library is about using the google places apis - and the geocoder you mentioned isn't part of it; there's no reason to couple them.

matanshukry avatar Jun 05 '25 14:06 matanshukry

Umm, what I implemented in one of my project is I fetched the gps location using this library and made a http call to the geocoding api as I was unable to find any library for flutter which had native implementation of geocoding api

pndychrg avatar Jun 06 '25 05:06 pndychrg

@pndychrg you should try this: https://pub.dev/packages/geocoding - I've used it in another project of mine. But again, it's not related to this project & plugin.

matanshukry avatar Jun 06 '25 06:06 matanshukry