map in django

189 views
Skip to first unread message

Satvir Toor

unread,
Jul 4, 2012, 8:08:57 AM7/4/12
to django...@googlegroups.com
Hello!!! Everyone
I am new to maps in django.I want to display map in django application
and to capture the latitude and longitude for that location and to
save in database. Please give me reference.


--
Satvir Kaur
satveerkaur.blogspot.in

kenneth gonsalves

unread,
Jul 4, 2012, 8:28:02 AM7/4/12
to django...@googlegroups.com
On Wed, 2012-07-04 at 17:38 +0530, Satvir Toor wrote:
> Hello!!! Everyone
> I am new to maps in django.I want to display map in django application
> and to capture the latitude and longitude for that location and to
> save in database. Please give me reference.

http://duckduckgo.com/?q=maps+in+django
--
regards
Kenneth Gonsalves

yak-man

unread,
Jul 4, 2012, 11:53:41 AM7/4/12
to django...@googlegroups.com
You might try browsing these:

http://pyvideo.org/search?models=videos.video&q=making+maps

http://inzane.net

The code from Zain's US PyCon2012 tutorial on making interaxtive maps is also in his github repositories - you might find that interesting.

Have lots of fun!
-Yarko

yarko

unread,
Jul 5, 2012, 2:22:32 AM7/5/12
to django...@googlegroups.com
On Wednesday, July 4, 2012 10:53:41 AM UTC-5, yarko wrote:
You might try browsing these:

 http://pyvideo.org/search?models=videos.video&q=making+maps

Apologies - Swype caused more than one typo:
 

http://inzane.net

 

The code from Zain's US PyCon2012 tutorial on making interactive maps is also in his github repositories - you might find that interesting.

Timothy Makobu

unread,
Jul 5, 2012, 3:08:47 AM7/5/12
to django...@googlegroups.com
Something like this? http://timslab.net/tornodes/

Questions; how do you GET the location? Is it a constant location, or does it depend on something? What is at that location, that makes you want to save it? Once we know why and how you get a location, we can help you better.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/e1j1bEaVaZ0J.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Satvir Toor

unread,
Jul 5, 2012, 3:24:01 AM7/5/12
to django...@googlegroups.com
On Thu, Jul 5, 2012 at 12:38 PM, Timothy Makobu
<makobu.m...@gmail.com> wrote:
> Something like this? http://timslab.net/tornodes/
can say.
>
> Questions; how do you GET the location? Is it a constant location, or does
> it depend on something? What is at that location, that makes you want to
> save it? Once we know why and how you get a location, we can help you
> better.
No it is not a constant location. Actually my requirement is to enter
the address for mapping location and from that map i want to fetch the
co-ordinates.Locations means address on map.


--
Satvir Kaur
satveerkaur.blogspot.in

Timothy Makobu

unread,
Jul 5, 2012, 3:38:40 AM7/5/12
to django...@googlegroups.com
http://stackoverflow.com/questions/3652951/google-maps-api-get-coordinates-of-address 

--
You received this message because you are subscribed to the Google Groups "Django users" group.

Satvir Toor

unread,
Jul 5, 2012, 7:25:51 AM7/5/12
to django...@googlegroups.com
I followed below link
http://pypi.python.org/pypi/django-google-maps/
it works fine in admin interface, But I want to display a map using
django templates. I wish for a output like
No. of text fields and a address field, the map would display the
location on itself according to value entered into address field.
Please help me.


--
Satvir Kaur
satveerkaur.blogspot.in

Timothy Makobu

unread,
Jul 5, 2012, 8:05:15 AM7/5/12
to django...@googlegroups.com
The link I gave you does exactly that. You give GMaps an address and it gives you JSON (or XML) of many things, among them longitude and latitude. You can then use  maybe http://gmap3.net/  to display the location on the map. The ajax that will glue all that together into one page is the homework.



--
Satvir Kaur
satveerkaur.blogspot.in

Satvir Toor

unread,
Jul 11, 2012, 3:35:24 AM7/11/12
to django...@googlegroups.com
On Wed, Jul 4, 2012 at 9:23 PM, yak-man <yar...@gmail.com> wrote:
> You might try browsing these:
> The code from Zain's US PyCon2012 tutorial on making interaxtive maps is also in his github repositories - you might find that interesting.
What is link for that???


--
Satvir Kaur
satveerkaur.blogspot.in

j_syk

unread,
Jul 11, 2012, 10:22:20 AM7/11/12
to django...@googlegroups.com
This Gist https://gist.github.com/1027898 is an example of a location Model which calls on a helper function when saved to find the lat & long of the address when it is saved.

The original snippet of the function is here- http://djangosnippets.org/snippets/2399/

On Wednesday, July 11, 2012 2:35:24 AM UTC-5, Satvir Kaur wrote:
Reply all
Reply to author
Forward
0 new messages