My goal is the following:
I'm developing a Django project. The goal is to locate places with a form. I'm using a CreateView generic view (maybe I should create it manually for more customization.
3 optionally ways to locate :
- by hand
- HTML 5 geolocation API
- External GPS (that gives the position to HTML 5 geolocation API or directly in Django)
The first is working well.
For the last point. Would I like to know the best way and HOW?
- I read location from serial with pyserial and pynmea
- I send to a Linux or cross-platform bridge to give it HTML 5 Geolocation API (external to Django project)
- An activation button that switches from HTML 5 Geolocation API to external GPS. Latlong feeds then the leaflet-Django instance.
I know this relevant post for windows but I need make it working on Linux.
use the web geolocation from HTML 5 with the plugin leaflet.location.
Django 2.1 - GeoDJango - Django-leaflet GPS: BT-747 (serial GPS)