简体   繁体   中英

how to create GPS location widget using django?

i am newbie to web development in all aspects; i've went through the bast tutorial of django and now i would like to construct something which can launch a map on html, let the user pick a location and return the (lang,lat) coordinates back to django;

any ideas of how generally this should be accomplished? if you got a working example it would be even more nice.

Thanks

have you tried http://djangosnippets.org ?

Google Geocode Lookup: http://djangosnippets.org/snippets/293/
Get Latitude and Longitude from google maps: http://djangosnippets.org/snippets/483/

There's GeoDjango, which is Django with Geospatial capabilities - it uses a spatial database such as spatialite or PostGIS.

That will do for database management. For map presentation, use OpenLayers or some other open source javascript map framework.

Hopefully that's enough for you to do some research and find a solution. If you've got more specific questions, ask them either here or more likely on the gis.stackexchange.com site.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM