Skip to content

google_places.text_search is broken or has bug that it doesn't use the passed location #127

@hatem-wasfy

Description

@hatem-wasfy

This part of code used to function properly and resolve places in neat way until yesterday suddenly,
all results are in USA no matter what location is passed for example Tokyo or its coordinateness.

YOUR_API_KEY = "xxxxxxxx" #valid key
google_places = GooglePlaces(YOUR_API_KEY)

query_result = google_places.text_search(query="food to have pizza", location="35.6762,139.6503", radius=20000)

or

query_result = google_places.text_search(query="food to have pizza", location="tokyo", radius=20000)

or
query_result = google_places.text_search(query="food to have pizza", lat_lng={'lat': 35.689487, 'lng': 139.691711}, radius=20000)

suddenly keeps returning this results in USA which is wrong!

I printed them to explain.


place_name White River Fish Market
place_url https://maps.google.com/?cid=828622667071624739

place_name Sams Southern Eatery
place_url https://maps.google.com/?cid=9911645007537618382

place_name Blu Fish House
place_url https://maps.google.com/?cid=5497347803265962612

place_name Wichita Fish Co
place_url https://maps.google.com/?cid=1122701565436120238

place_name Haysville Fish Co
place_url https://maps.google.com/?cid=16912299620928506324

Is it a bug or there is a reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions