-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Geocode information for search autocomplete and input query #186
Comments
overview for endpoint for search input query to get back search results and its corresponding geocode details:
|
@khusbuchandra I'll take care off: search/autocomplete api should pass along the lat long values along with predictions while you take a crack at the new end point. |
For input query search, I want to use textSearch request instead of nearby search, as it provides support for ambiguous address queries or incomplete address. Moreover the nearbySearch needs the latlng details as mandatory request parameter, which is not available similar to autocomplete in search. @jkwening , I will proceed with textsearch in case it has limitations for our usage, we can switch. |
@khusbuchandra sounds good to me. If you do run into issues with textSearch, regarding the lat/lng comment for nearby search, it is needed for location biasing of what places to prioritize. As I mentioned, you can pass the user location which is stored as a state object in MapContainer, so you can pass it down to Search component as a prop. |
@jkwening , you have added /map/geocode does it means frontend should make a separate call for selected prediction or you would modify autocomplete api as well to pass geocode data for each prediction? |
@khusbuchandra the former - have frontend make a separate call for the selected prediction. Else, we may end up making too many calls to the api that will surpass our limits since a user can keep changing their mind. |
Thanks @jkwening , exactly my thoughts. I even got the maxed out error today. We need to implement a strategy for that too. |
Modify the backend api to include geocode information needed for Search component:
The above endpoints are needed to avoid additional calls from frontend for getting the geocode information.
The text was updated successfully, but these errors were encountered: