pythonindia / pssi.org.in

Official PSSI website
https://pssi.org.in
9 stars 12 forks source link

Map to display all User Group in India #15

Open kracekumar opened 9 years ago

kracekumar commented 9 years ago

Have a map on the site that shows the current local user groups across the country and the one closest to the user. If there is none, the user can start and list one.

iambibhas commented 9 years ago

Like I mentioned in a mail on the PSSI list, let's have this feature on the python.org.in app. Let pssi.org.in totally be about PSSI. We can show the map on this site but then link to python.org.in for any further development.

kishorbhat commented 9 years ago

I'd like to take this up. However, I have a few questions:

  1. Should the map be static or dynamic? If the only thing we're doing with the map on this site is displaying existing groups, then a static solution is simpler to implement.
  2. @iambibhas what exactly do you mean by further development?
  3. @kracekumar @iambibhas is it safe to assume that we will be using the Google Maps API for this functionality?
kracekumar commented 9 years ago

I think this is isn't urgent, so @kbhat95 feel free to pick up something else. Have a look at source and setup local environment, we can discuss about other issues in the venue.

vnbang2003 commented 9 years ago

@iambibhas I think it would be good show google maps in local user group link of pssi website where we show usergroup list. We can extend same feature in python.org.in

kishorbhat commented 9 years ago

@vnbang2003 I was also thinking along those lines and have looked into the API. Can we discuss this today?

vnbang2003 commented 9 years ago

Sure . I will be coming a bit late till that point feel free to take up other tickets

vnbang2003 commented 9 years ago

@kbhat95 , Are you planing to take it up as per our discussion offline ?

kishorbhat commented 9 years ago

@vnbang2003 , yes.

Should I proceed by maintaining a list of lat / long? To me it seems like overkill, since the Google Maps API is quite flexible and can place markers based on address as well.

Also, for now should I just hardcode the API request string into the template? If not (i.e., if we're going the json way), I may need some help. :)

I'll begin work this weekend.

Regards, kbhat95

vnbang2003 commented 9 years ago

@kbhat95 Let follow some data structure so it easier to add new in feature. Just make choice accordingly.

kishorbhat commented 9 years ago

@vnbang2003

This is what I have so far:

The overlap of some user groups can be fixed easily; this is a prototype. :) However, I am not sure how to integrate this into the template, because then the template will no longer be static.

vnbang2003 commented 9 years ago

@kbhat95 This looks good . Onblur over will it show link to localuser and meetup link as shown in the page ? I think we can hardcode in html page as it very rare thing changes.

kishorbhat commented 9 years ago

@vnbang2003

The static maps API doesn't support text on hover-over. But since we are placing the map alongside the list of user groups, I can just indicate the letter next to the group in the list.

My question is: how do I embed this Python code and use it in template without having to define a view for it?

vnbang2003 commented 9 years ago

you need to define new view and point /usergroups/ to the new view which will solve the problem. You can refer this url definitions https://github.com/pythonindia/pssi.org.in/blob/develop/pssi/urls.py

kishorbhat commented 9 years ago

Sorry for the delay; got caught up in other work.

I find myself confused as to where to put the view that I've created. Do I create a new views.py withiin /pssi/ ?