Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

City Filter #9

Open
tjr5269 opened this issue Oct 30, 2018 · 1 comment
Open

City Filter #9

tjr5269 opened this issue Oct 30, 2018 · 1 comment

Comments

@tjr5269
Copy link

tjr5269 commented Oct 30, 2018

I'm following your guide to develop a similar application. I am confused to how the City filter works. It doesn't seem like you are using the cafes that are passed through the API. Is it based on the city_id in on the cafe model?

@danpastori
Copy link
Contributor

Hi @tjr5269 Sorry for the confusion, I've been working on the article for the city filter. The city filter is populated through the route /api/v1/cities. When the city is selected, it zooms to the coordinates that are at the center of the city. The filtering of the city is based on the cafe and the city_id on the cafe model for right now. That's what determines what is shown when the filter is selected.

Hope that helps!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants