Re: Inserting HTML5 Coordinates Into Django Form

2012-05-22 Thread Timothy Makobu
If I understood your question correctly, using jQuery, I would use GMAP3 http://gmap3.net/ to get the the lat and long, store those in hidden form fields, and submit that. http://www.electrictoolbox.com/jquery-get-set-form-values/ MaxMind also have a free IP-to-City database, so pygeoip.GeoIP().re

Inserting HTML5 Coordinates Into Django Form

2012-05-21 Thread DF
I'm wading – carefully – into some basic geolocation using HTML5. I currently have a meta form that has space for lat and long coordinates and have found the proper code to obtain those coordinates using the Google Maps API (pretty simple stuff). Next step: inserting those coordinates automatic