klpdotorg / dubdubdub

Home of KLP. Houses *most* of the data and APIs.
MIT License
5 stars 4 forks source link

Search. Schools, pincodes and neighborhoods. #64

Closed geohacker closed 10 years ago

geohacker commented 10 years ago

There are three ways users can search on our app -

  1. School Name - should be a suggestion based autocomplete search for all the schools we have in the database. Will open the school page straight? Or show the map with the school? @batpad @iambibhas thoughts?
  2. PIN code - suggestion based autocomplete search for all pincodes. Show the map with the bounding box for the PIN code and all school markers in that area.
  3. Neighborhood - hit Google geocoder with the free text and set the map view based on the result.
geohacker commented 10 years ago

And now the million dollar question - do we allow people to search by admin boundaries as well? If so, how?

geohacker commented 10 years ago

Let's just implement this like how @iambibhas implemented it in DISE? or implement a full blown search backend? Thoughts?

meghaklp commented 10 years ago

I think we wanted to throw somethings out, but the way any akshara/partner/ government folks will use the map. We may want that filter we have on the map still. But if that can be added on later, that's also fine.

Thanks, Megha 9845844936 | www.klp.org.in

On Thu, Jun 12, 2014 at 4:43 PM, Sajjad Anwar notifications@github.com wrote:

Let's just implement this like how @iambibhas https://github.com/iambibhas implemented it in DISE https://github.com/klpdotorg/dise_dashboard/blob/master/apps/schools/olap_views.py? or implement a full blown search backend? Thoughts?

Reply to this email directly or view it on GitHub https://github.com/klpdotorg/dubdubdub/issues/64#issuecomment-45879259.

iambibhas commented 10 years ago

School Name - should be a suggestion based autocomplete search for all the schools we have in the database. Will open the school page straight? Or show the map with the school? @batpad @iambibhas thoughts?

let autocomplete stay, clicking one item from autocomplete list will open school/other entities' page, but also, if the user doesn't select an item from the autocomplete list and just hits enter, show a map of all the matching schools.

Also, this time, let's bind the result list and map pointers in such a way so that hovering over an item on the result list shows a popup on the respective map pointer with the name of the entity.

PIN code - suggestion based autocomplete search for all pincodes. Show the map with the bounding box for the PIN code and all school markers in that area.

Sounds good.

Neighborhood - hit Google geocoder with the free text and set the map view based on the result.

Sounds good. And show few schools in that area?

geohacker commented 10 years ago

@iambibhas great. Let's run with this then. @batpad anything to add? So anything specific that needs to go into the API Spec?

geohacker commented 10 years ago

This will be query parameters to the existing end points and the front-end deal with it. Tracking more at #78.

geohacker commented 10 years ago

@iambibhas @batpad - the current search looks great. Thanks Bibhas. The only thing missing is the Neighborhood search, we will do it straight from the client-side. Hit Google or OSM. I'll make this part of the map JS.