#6877 (How to send client's geolocation to the Lino server?)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 2 Monate ago von Luc Saffre Antwort auf Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) : @8lurry helped my to get unstuck. I didn't yet know that the preprocessor function gets passed thre arguments (context, preprocessedStack, action), and instead of returning the coordinates it must put them to preprocessor.
- 2 Monate ago von Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) (1 Antwort) : In lino_patrols.lib.notes I added a js snippet inspired by this, and an action preprocessor, but got stuck. I guess @8lurry that you will quickly see what I'm missing.
- 4 Monate, 1 Woche ago von Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) : Great! Yes, you did much work! For Lino Patrols it seems that we need just the location, no named place. It all happens within an area smaller than 30x30km. They want to see observations from other stewards that were taken within 100m from their own current location.
- 4 Monate, 1 Woche ago von Sharif Mehedi about #6877 (How to send client's geolocation to the Lino server?) : To get GeoLocation from the frontend, you may look at polygon.mixins.SetLocation action. It uses HTML5's "navigator.geolocation.getCurrentPosition" interface. This action depends on another action to work. But we can probably make a simplified version of it.
- 4 Monate, 1 Woche ago von Sharif Mehedi Antwort auf Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) : If you want to use GeoDjango or try out our polygon plugin. Let me know.
- 4 Monate, 1 Woche ago von Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) (1 Antwort) : For #6802 (Projekt "Stewards" (Lino Patrols)) we want a model Observation(user, created_time, body, geo_x, geo_y), where geopos would be the coordinates of the current location of the device when the user submitted this observation.
- 4 Monate, 1 Woche ago von Luc Saffre about #6877 (How to send client's geolocation to the Lino server?) : Created new Ticket #6877 (How to send client's geolocation to the Lino server?).