I’m implementing both geocoding and place Google APIs. The first returns some points (lat/long) from an address. The second returns some points of interests form a search entry.
I would like, as the iphone Map native application, to determine if the user have typed an address in the search bar, or just some keywords.
For exemple, if I type :
9 bicycle Street, New York => address, use Geocoding API
9 bicycle Street => Geocoding API
bicycle street => Geocoding API
bicycle => Place API
bicycle shop => Place API
I tried to always call geocoding API, and if no result, Place API. But there is always a result.
Should I detect some keywords, like street, highway, … ?
I’ve finally found the answer.
iPhone Map native application does not determine if the user have typed an address or just some keywords. It calls the equivalent of place API with a Text Search Requests.
Text search requests are more flexible and powerful than Place Search Requests, but consume 10 times more requests in your limited quota: