twitter-dart / twitter-api-v2

The most famous and powerful Dart/Flutter library for Twitter API v2.0 🐦
https://pub.dev/packages/twitter_api_v2
BSD 3-Clause "New" or "Revised" License
167 stars 45 forks source link

Support `/1.1/geo/reverse_geocode` #584

Closed myConsciousness closed 1 year ago

myConsciousness commented 1 year ago
    @myConsciousness 

Thanks for your work.

Can I use /1.1/geo/reverse_geocode here?

I am trying

final res = await api.geo.searchLocations(
            granularity: GeoGranularity.neighborhood,
            latitude:****,
            longitude: ******,
          );

but I got

[埼玉 所沢市, 埼玉 川越市, 埼玉 さいたま市 大宮区,....

It is too broad, I just want to search for the store that is near me.

Originally posted by @normidar in https://github.com/twitter-dart/twitter-api-v2/issues/577#issuecomment-1336127034

myConsciousness commented 1 year ago

Hi @normidar , thanks for your feedback :)

Unfortunately, the current implementation does not support the /1.1/geo/reverse_geocode endpoint. This could have been added in the last release, but I could not determine the demand for an endpoint that does reverse geocoding.

However, this endpoint would be very easy to add. I'm looking forward to your pull request! :)

normidar commented 1 year ago

I created PR!

myConsciousness commented 1 year ago

@all-contributors please add @normidar for code, doc, question

allcontributors[bot] commented 1 year ago

@myConsciousness

I've put up a pull request to add @normidar! :tada: