Open dgatto opened 3 years ago
Will this be a grid view?
Most likely server-side on the filtering.
Do we want sorting? Is that necessary? Maybe for the time it was added?
Will this be paginated, or an infinite scroll that fetches more results? Probably paginated? Idk what's best for a mobile experience. If it was a grid, pagination would be best. If we're going the traditional shopping UX route, infinite scroll would work better because users could then filter and sort based on what they want to narrow results.
Would it be better to instead show the pins in a list view more akin to online shopping?
Users can search by location, and be provided appropriate filter/sort options.
On initial load, we won't know the area of pins to load, so possibly just throw a prompt saying "enter zipcode to search from"
On initial search, the list will be sorted by pins nearest the search location.
For finding nearby places:
https://developers.google.com/maps/documentation/places/web-service/search#find-place-examples
https://maps.googleapis.com/maps/api/place/findplacefromtext/json?input=mongolian%20grill&inputtype=textquery&fields=photos,formatted_address,name,opening_hours,rating&locationbias=circle:2000@47.6918452,-122.2226413&key=YOUR_API_KEY
Would probably be best to have the server request all the nearby locations so that the client doesn't take that data hit.
(only send updates to people within same zip code)
Still need mockups for filtering and sorting.
if i filter or sort, does it apply to all items in the db, or just the items on screen (before the 'load more')
it should apply to all items in db, but also only filter items within the location.