'Google Places Text Search API Issue
Requirement:
- Need to search business through the address and in the result list Business name should return.
Problem: When we search by only address of the business ( without business name ), then in the result list it returns only the address or place and does not return business name. To get the business name in the result list, I had passed "Opennow = true" in the request, which works well and return business name in the results set whenever we search through only address. But the challenge here is that, the Opennow = true returns only those businesses which opening hours are open at the search time, out of the opening hours it returns blank data.
I need the list of businesses with their name whenever we search through address only regardless of opening hours open or closed.
This is the API I am using to get text search data: "https://maps.googleapis.com/maps/api/place/textsearch/json?query=&opennow=true&types=establishment®ion=us&key="
Solution 1:[1]
I found resolution for your query in the google documentation:
https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-hotelsearch
Could you try the above, surely, it requires modifications. Hope that will solve your problem Thanks
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Chetan Tete |
