Saving Longitude and Latitude to a user profile in Django

I was looking for a way to use HTML5 (and possibly JS) to save visitor/user Longitudnal & Latitudnal data to a database. I do not wish to use packages out there as they seem a bit outdated and may break my code in future considerting their own reliance on other APIs.

I know there is a way around using AJAX, but I clearly dont know and understand it well enough to implement it.

My ask of the learned Lords is - 1. Get Loc data 2. Send it to Python in dict or json or string format from where it can be further processed and saved.

Why you may ask - Good question. I would use it for displaying weather on the homepage and local twitter trends on a 'logged-in' page.

Any assistance would be appreciated.


Read more here:

Content Attribution

This content was originally published by Feramonics at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: