Add bearing to live monitoring

This commit is contained in:
Victor Shcherb 2013-07-13 23:04:04 +02:00
parent 3c59c2c88f
commit 5756277e40
30 changed files with 193 additions and 90 deletions

View file

@ -1,55 +1,156 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/net.osmand.plus" xmlns:custom="http://schemas.android.com/apk/res/net.osmand.plus"
android:layout_width="fill_parent" android:layout_height="fill_parent"> android:layout_width="fill_parent"
<LinearLayout android:layout_height="fill_parent" >
android:layout_width="fill_parent"
android:layout_height="wrap_content" android:orientation="vertical" android:gravity="center_horizontal">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<net.osmand.view.ExpandableLinearLayout custom:maxVisibleWidth="800dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" > <net.osmand.view.ExpandableLinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
custom:maxVisibleWidth="800dp" >
<TableLayout android:id="@+id/TableLayout" android:layout_width="fill_parent" android:stretchColumns="1" android:layout_height="wrap_content" > <TableLayout
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp"> android:id="@+id/TableLayout"
<TextView android:id="@+id/TextView" android:text="@string/search_address_region"> android:layout_width="fill_parent"
</TextView> android:layout_height="wrap_content"
<Button android:id="@+id/CountryButton" android:text="@string/ChooseCountry" /> android:stretchColumns="1" >
<ImageButton android:id="@+id/ResetCountry" android:layout_marginRight = "5dp" android:layout_gravity="center_vertical"
android:background="?attr/reset_image" android:contentDescription="@string/default_buttons_reset">
</ImageButton>
</TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp" >
<TextView android:id="@+id/TextView" android:text="@string/search_address_city">
</TextView>
<Button android:id="@+id/CityButton" android:text="@string/choose_city" />
<ImageButton android:id="@+id/ResetCity" android:layout_marginRight = "5dp" android:layout_gravity="center_vertical"
android:background="?attr/reset_image" android:contentDescription="@string/default_buttons_reset">
</ImageButton>
</TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp">
<TextView android:id="@+id/TextView" android:text="@string/search_address_street">
</TextView>
<Button android:id="@+id/StreetButton" android:text="@string/choose_street" />
<ImageButton android:id="@+id/ResetStreet" android:layout_marginRight = "5dp" android:layout_gravity="center_vertical"
android:background="?attr/reset_image" android:contentDescription="@string/default_buttons_reset">
</ImageButton>
</TableRow>
<TableRow android:id="@+id/TableRow" android:layout_marginLeft = "5dp">
<TextView android:id="@+id/BuildingText" android:text="@string/search_address_building">
</TextView>
<Button android:id="@+id/BuildingButton" android:text="@string/choose_building" />
<ImageButton android:id="@+id/ResetBuilding" android:layout_marginRight = "5dp" android:layout_gravity="center_vertical"
android:background="?attr/reset_image" android:contentDescription="@string/default_buttons_reset">
</ImageButton>
</TableRow>
</TableLayout>
<RadioGroup android:orientation="horizontal" android:layout_span="3" android:id="@+id/RadioGroup" android:layout_marginLeft="5dp" android:layout_width="fill_parent" android:layout_height="wrap_content"> <TableRow
<RadioButton android:id="@+id/RadioBuilding" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/search_address_building_option"></RadioButton> android:id="@+id/TableRow"
<RadioButton android:id="@+id/RadioIntersStreet" android:layout_width="wrap_content" android:layout_marginLeft = "5dp" android:layout_height="wrap_content" android:text="@string/search_address_street_option"></RadioButton> android:layout_marginLeft="5dp" >
</RadioGroup>
<TextView
android:id="@+id/TextView"
android:text="@string/search_address_region" >
</TextView>
<Button
android:id="@+id/CountryButton"
android:text="@string/ChooseCountry"
android:scrollHorizontally="true"
android:lines="1"
android:ellipsize="end"
/>
<ImageButton
android:id="@+id/ResetCountry"
android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:background="?attr/reset_image"
android:contentDescription="@string/default_buttons_reset" >
</ImageButton>
</TableRow>
<TableRow
android:id="@+id/TableRow"
android:layout_marginLeft="5dp" >
<TextView
android:id="@+id/TextView"
android:text="@string/search_address_city" >
</TextView>
<Button
android:id="@+id/CityButton"
android:text="@string/choose_city"
android:scrollHorizontally="true"
android:lines="1"
android:ellipsize="end"
/>
<ImageButton
android:id="@+id/ResetCity"
android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:background="?attr/reset_image"
android:contentDescription="@string/default_buttons_reset" >
</ImageButton>
</TableRow>
<TableRow
android:id="@+id/TableRow"
android:layout_marginLeft="5dp" >
<TextView
android:id="@+id/TextView"
android:text="@string/search_address_street" >
</TextView>
<Button
android:id="@+id/StreetButton"
android:text="@string/choose_street"
android:scrollHorizontally="true"
android:lines="1"
android:ellipsize="end"
/>
<ImageButton
android:id="@+id/ResetStreet"
android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:background="?attr/reset_image"
android:contentDescription="@string/default_buttons_reset" >
</ImageButton>
</TableRow>
<TableRow
android:id="@+id/TableRow"
android:layout_marginLeft="5dp" >
<TextView
android:id="@+id/BuildingText"
android:text="@string/search_address_building" >
</TextView>
<Button
android:id="@+id/BuildingButton"
android:text="@string/choose_building"
android:scrollHorizontally="true"
android:lines="1"
android:ellipsize="end"
/>
<ImageButton
android:id="@+id/ResetBuilding"
android:layout_gravity="center_vertical"
android:layout_marginRight="5dp"
android:background="?attr/reset_image"
android:contentDescription="@string/default_buttons_reset" >
</ImageButton>
</TableRow>
</TableLayout>
<RadioGroup
android:id="@+id/RadioGroup"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:layout_span="3"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/RadioBuilding"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/search_address_building_option" >
</RadioButton>
<RadioButton
android:id="@+id/RadioIntersStreet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="@string/search_address_street_option" >
</RadioButton>
</RadioGroup>
</net.osmand.view.ExpandableLinearLayout>
</LinearLayout>
</net.osmand.view.ExpandableLinearLayout >
</LinearLayout>
</ScrollView> </ScrollView>

View file

@ -201,7 +201,7 @@
<string name="live_monitoring">Aanlyn lewendige spoor-natrek</string> <string name="live_monitoring">Aanlyn lewendige spoor-natrek</string>
<string name="live_monitoring_interval_descr">Spesifiseer lewendige spoor-natrek interval</string> <string name="live_monitoring_interval_descr">Spesifiseer lewendige spoor-natrek interval</string>
<string name="live_monitoring_interval">Lewendige spoor-natrek interval</string> <string name="live_monitoring_interval">Lewendige spoor-natrek interval</string>
<string name="live_monitoring_url_descr">Spesifiseer die web adres met parameteroordrag sinsbou: lat = {0}, lon = {1}, tyd stempel = {2}, hdop = {3}, hoogte = {4}, spoed = {5}</string> <string name="live_monitoring_url_descr">Spesifiseer die web adres met parameteroordrag sinsbou: lat = {0}, lon = {1}, tyd stempel = {2}, hdop = {3}, hoogte = {4}, spoed = {5}, bearing={6}</string>
<string name="live_monitoring_url">Lewendige spoor-natrek webadres</string> <string name="live_monitoring_url">Lewendige spoor-natrek webadres</string>
<string name="gpx_monitoring_disabled_warn">Skakel asseblief \'Meld spoor na GPX\' aan in natrekking instellings.</string> <string name="gpx_monitoring_disabled_warn">Skakel asseblief \'Meld spoor na GPX\' aan in natrekking instellings.</string>
<string name="show_current_gpx_title">Wys huidige spoor</string> <string name="show_current_gpx_title">Wys huidige spoor</string>

View file

@ -770,7 +770,7 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
<string name="live_monitoring">Online tracking</string> <string name="live_monitoring">Online tracking</string>
<string name="live_monitoring_interval_descr">Specify online tracking interval</string> <string name="live_monitoring_interval_descr">Specify online tracking interval</string>
<string name="live_monitoring_interval">Online tracking interval</string> <string name="live_monitoring_interval">Online tracking interval</string>
<string name="live_monitoring_url_descr">Specify the web address with parameter syntax: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specify the web address with parameter syntax: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Online tracking web address</string> <string name="live_monitoring_url">Online tracking web address</string>
<string name="gpx_monitoring_disabled_warn">Калі ласка, дазвольце \'Лагаваньне трэкаў у GPX файл\' у наладах трэкінгу</string> <string name="gpx_monitoring_disabled_warn">Калі ласка, дазвольце \'Лагаваньне трэкаў у GPX файл\' у наладах трэкінгу</string>
<string name="show_current_gpx_title">Паказаць дзейны трэк</string> <string name="show_current_gpx_title">Паказаць дзейны трэк</string>

View file

@ -225,7 +225,7 @@
<string name="test_voice_prompts">Prova els indicadors de veu</string> <string name="test_voice_prompts">Prova els indicadors de veu</string>
<string name="support_new_features">Ajuda per a noves característiques</string> <string name="support_new_features">Ajuda per a noves característiques</string>
<string name="rendering_out_of_memory">No hi ha prou memòria de procés per mostrar l\'àrea seleccionada</string> <string name="rendering_out_of_memory">No hi ha prou memòria de procés per mostrar l\'àrea seleccionada</string>
<string name="live_monitoring_url_descr">Especifiqueu l\'adreça de la pàgina web amb la sintaxi dels paràmetres: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Especifiqueu l\'adreça de la pàgina web amb la sintaxi dels paràmetres: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="index_name_north_america">Amèrica del Nord</string> <string name="index_name_north_america">Amèrica del Nord</string>
<string name="index_name_us">Amèrica del Nord - Estats Units</string> <string name="index_name_us">Amèrica del Nord - Estats Units</string>
<string name="index_name_central_america">Amèrica Central</string> <string name="index_name_central_america">Amèrica Central</string>

View file

@ -102,7 +102,7 @@
<string name="live_monitoring">Přímý přenos pozice</string> <string name="live_monitoring">Přímý přenos pozice</string>
<string name="live_monitoring_interval_descr">Zadejte interval nahrávání pozice na server</string> <string name="live_monitoring_interval_descr">Zadejte interval nahrávání pozice na server</string>
<string name="live_monitoring_interval">Interval přímého přenosu</string> <string name="live_monitoring_interval">Interval přímého přenosu</string>
<string name="live_monitoring_url_descr">Zadejte webovou adresu serveru pro přímý přenos pozice. Parametry: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Zadejte webovou adresu serveru pro přímý přenos pozice. Parametry: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Server pro přímý přenos</string> <string name="live_monitoring_url">Server pro přímý přenos</string>
<string name="gpx_monitoring_disabled_warn">Prosím, zapněte funkci \'Uložit trasu do GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Prosím, zapněte funkci \'Uložit trasu do GPX\'.</string>
<string name="show_current_gpx_title">Zobrazit aktuální trasu</string> <string name="show_current_gpx_title">Zobrazit aktuální trasu</string>

View file

@ -474,7 +474,7 @@
<string name="live_monitoring">Online sporing</string> <string name="live_monitoring">Online sporing</string>
<string name="live_monitoring_interval_descr">Indstil interval for onlinesporing</string> <string name="live_monitoring_interval_descr">Indstil interval for onlinesporing</string>
<string name="live_monitoring_interval">Interval for online sporing</string> <string name="live_monitoring_interval">Interval for online sporing</string>
<string name="live_monitoring_url_descr">Angiv webadressen med parametersyntaks: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Angiv webadressen med parametersyntaks: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Webadresse for online sporing</string> <string name="live_monitoring_url">Webadresse for online sporing</string>
<string name="gpx_monitoring_disabled_warn">Aktiver \'Log spor til GPX-fil\' indstilling.</string> <string name="gpx_monitoring_disabled_warn">Aktiver \'Log spor til GPX-fil\' indstilling.</string>
<string name="show_current_gpx_title">Vis aktuelt spor</string> <string name="show_current_gpx_title">Vis aktuelt spor</string>

View file

@ -413,7 +413,7 @@ Afghanistan, Ägypten, Albanien, Algerien, Andorra, Angola, Anguilla, Antigua un
<string name="live_monitoring">Online-Tracking aktivieren</string> <string name="live_monitoring">Online-Tracking aktivieren</string>
<string name="live_monitoring_interval_descr">Angabe des Online-Tracking Invervalls</string> <string name="live_monitoring_interval_descr">Angabe des Online-Tracking Invervalls</string>
<string name="live_monitoring_interval">Online-Tracking Intervall</string> <string name="live_monitoring_interval">Online-Tracking Intervall</string>
<string name="live_monitoring_url_descr">Spezifikation der Online-Tracking Web-Adresse mit Datenübergabe: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Spezifikation der Online-Tracking Web-Adresse mit Datenübergabe: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Online-Tracking Web-Adresse</string> <string name="live_monitoring_url">Online-Tracking Web-Adresse</string>
<string name="gpx_monitoring_disabled_warn">Bitte Aufzeichnung unter \'Einstellungen\' → \'Navigation\' aktivieren.</string> <string name="gpx_monitoring_disabled_warn">Bitte Aufzeichnung unter \'Einstellungen\' → \'Navigation\' aktivieren.</string>
<string name="show_current_gpx_title">Aktuellen Track anzeigen</string> <string name="show_current_gpx_title">Aktuellen Track anzeigen</string>

View file

@ -336,7 +336,7 @@
<string name="live_monitoring">Online ιχνηλάτηση</string> <string name="live_monitoring">Online ιχνηλάτηση</string>
<string name="live_monitoring_interval_descr">Καθορίστε το διάστημα της online ιχνηλάτησης</string> <string name="live_monitoring_interval_descr">Καθορίστε το διάστημα της online ιχνηλάτησης</string>
<string name="live_monitoring_interval">Διάστημα online ιχνηλάτησης</string> <string name="live_monitoring_interval">Διάστημα online ιχνηλάτησης</string>
<string name="live_monitoring_url_descr">Καθορίστε τη διεύθυνση web με την σύνταξη παραμέτρων : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Καθορίστε τη διεύθυνση web με την σύνταξη παραμέτρων : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Διαδικτυακή διεύθυνση online ιχνηλάτησης</string> <string name="live_monitoring_url">Διαδικτυακή διεύθυνση online ιχνηλάτησης</string>
<string name="gpx_monitoring_disabled_warn">Παρακαλώ ενεργοποιήστε τις ρυθμίσεις \'Εγγραφή ίχνους σε αρχείο GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Παρακαλώ ενεργοποιήστε τις ρυθμίσεις \'Εγγραφή ίχνους σε αρχείο GPX\'.</string>
<string name="show_current_gpx_title">Εμφάνιση τρέχοντος ίχνους</string> <string name="show_current_gpx_title">Εμφάνιση τρέχοντος ίχνους</string>

View file

@ -43,7 +43,7 @@
<string name="live_monitoring">Seguimiento en directo</string> <string name="live_monitoring">Seguimiento en directo</string>
<string name="live_monitoring_interval_descr">Especifica el intervalo de seguimiento en directo</string> <string name="live_monitoring_interval_descr">Especifica el intervalo de seguimiento en directo</string>
<string name="live_monitoring_interval">Intervalo de seguimiento en directo</string> <string name="live_monitoring_interval">Intervalo de seguimiento en directo</string>
<string name="live_monitoring_url_descr">Especifica la dirección web con sintaxis de parámetros : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Especifica la dirección web con sintaxis de parámetros : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Dirección web de Seguimiento en directo</string> <string name="live_monitoring_url">Dirección web de Seguimiento en directo</string>
<string name="gpx_monitoring_disabled_warn">Por favor, active la opción \'Guardar traza en fichero GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Por favor, active la opción \'Guardar traza en fichero GPX\'.</string>
<string name="show_current_gpx_title">Mostrar traza actual</string> <string name="show_current_gpx_title">Mostrar traza actual</string>

View file

@ -25,7 +25,7 @@
<string name="live_monitoring">Activer le suivi en ligne</string> <string name="live_monitoring">Activer le suivi en ligne</string>
<string name="live_monitoring_interval_descr">Préciser l\'intervalle pour le suivi en ligne</string> <string name="live_monitoring_interval_descr">Préciser l\'intervalle pour le suivi en ligne</string>
<string name="live_monitoring_interval">Intervalle pour le suivi en ligne</string> <string name="live_monitoring_interval">Intervalle pour le suivi en ligne</string>
<string name="live_monitoring_url_descr">Précisez l\'adresse web pour le suivi en ligne avec la syntaxe : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Précisez l\'adresse web pour le suivi en ligne avec la syntaxe : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Adresse web pour le suivi en ligne</string> <string name="live_monitoring_url">Adresse web pour le suivi en ligne</string>
<string name="gpx_monitoring_disabled_warn">Veuillez activer \'Enregistrer l\'itinéraire en GPX\' en paramètre de suivi.</string> <string name="gpx_monitoring_disabled_warn">Veuillez activer \'Enregistrer l\'itinéraire en GPX\' en paramètre de suivi.</string>
<string name="show_current_gpx_title">Afficher le trajet en cours</string> <string name="show_current_gpx_title">Afficher le trajet en cours</string>

View file

@ -349,7 +349,7 @@
<string name="live_monitoring">מעקב חי מקוון</string> <string name="live_monitoring">מעקב חי מקוון</string>
<string name="live_monitoring_interval_descr">נא לציין הפסקות בין דיווחי מעקב חי</string> <string name="live_monitoring_interval_descr">נא לציין הפסקות בין דיווחי מעקב חי</string>
<string name="live_monitoring_interval">הפסקות בין דיווחי מעקב חי</string> <string name="live_monitoring_interval">הפסקות בין דיווחי מעקב חי</string>
<string name="live_monitoring_url_descr">נא לציין את כתובת השרת עם תחביר הפרמטרים הבא: רוחב={0}, אורך={1}, חותמת_זמן={2}, hdop={3}, גובה={4}, מהירות={5}</string> <string name="live_monitoring_url_descr">נא לציין את כתובת השרת עם תחביר הפרמטרים הבא: רוחב={0}, אורך={1}, חותמת_זמן={2}, hdop={3}, גובה={4}, מהירות={5}, bearing={6} </string>
<string name="live_monitoring_url">כתובת שרת המעקב החי</string> <string name="live_monitoring_url">כתובת שרת המעקב החי</string>
<string name="gpx_monitoring_disabled_warn">נא להפעיל את \'מעקב אחר המסלול לקובץ GPX\' בהגדרות.</string> <string name="gpx_monitoring_disabled_warn">נא להפעיל את \'מעקב אחר המסלול לקובץ GPX\' בהגדרות.</string>
<string name="show_current_gpx_title">הצגת המסלול הנוכחי</string> <string name="show_current_gpx_title">הצגת המסלול הנוכחי</string>

View file

@ -93,7 +93,7 @@
<string name="live_monitoring">Online útvonalrögzítés</string> <string name="live_monitoring">Online útvonalrögzítés</string>
<string name="live_monitoring_interval_descr">Online útvonalrögzítés intervalluma</string> <string name="live_monitoring_interval_descr">Online útvonalrögzítés intervalluma</string>
<string name="live_monitoring_interval">Online rögzítési sűrűség</string> <string name="live_monitoring_interval">Online rögzítési sűrűség</string>
<string name="live_monitoring_url_descr">Add meg a használni kívánt webcímet az alábbi szintaxissal: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Add meg a használni kívánt webcímet az alábbi szintaxissal: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Online rögzítés webcíme</string> <string name="live_monitoring_url">Online rögzítés webcíme</string>
<string name="gpx_monitoring_disabled_warn">Kérlek engedélyezd az \'Útvonal rögzítése GPX-be\' beállítást.</string> <string name="gpx_monitoring_disabled_warn">Kérlek engedélyezd az \'Útvonal rögzítése GPX-be\' beállítást.</string>
<string name="show_current_gpx_title">Aktív útvonalrögzítés</string> <string name="show_current_gpx_title">Aktív útvonalrögzítés</string>

View file

@ -26,7 +26,7 @@
<string name="live_monitoring">Tracking online in diretta</string> <string name="live_monitoring">Tracking online in diretta</string>
<string name="live_monitoring_interval_descr">Specifica l\'intervallo del tracking in diretta</string> <string name="live_monitoring_interval_descr">Specifica l\'intervallo del tracking in diretta</string>
<string name="live_monitoring_interval">Intervallo del Live tracking</string> <string name="live_monitoring_interval">Intervallo del Live tracking</string>
<string name="live_monitoring_url_descr">Specifica l\'indirizzo internet con la sintassi dei parametri: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specifica l\'indirizzo internet con la sintassi dei parametri: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Indirizzo internet per il tracking in diretta</string> <string name="live_monitoring_url">Indirizzo internet per il tracking in diretta</string>
<string name="gpx_monitoring_disabled_warn">Abilita nelle impostazioni \'Registrazione della traccia nel file GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Abilita nelle impostazioni \'Registrazione della traccia nel file GPX\'.</string>
<string name="show_current_gpx_title">Visualizza la traccia corrente</string> <string name="show_current_gpx_title">Visualizza la traccia corrente</string>

View file

@ -147,7 +147,7 @@
<string name="live_monitoring">დევნა მიმდინარე რეჟიმში</string> <string name="live_monitoring">დევნა მიმდინარე რეჟიმში</string>
<string name="live_monitoring_interval_descr">მიუთითეთ მიმდინარე რეჟიმში დევნის ინტერვალი</string> <string name="live_monitoring_interval_descr">მიუთითეთ მიმდინარე რეჟიმში დევნის ინტერვალი</string>
<string name="live_monitoring_interval">ცოცხალი დევნის ინტერვალი</string> <string name="live_monitoring_interval">ცოცხალი დევნის ინტერვალი</string>
<string name="live_monitoring_url_descr">მიუთითეთ ვებ მისამართუ შემდეგი პარამეტრების სინტაქსით : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">მიუთითეთ ვებ მისამართუ შემდეგი პარამეტრების სინტაქსით : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">ცოცხალი დევნის ვებ-მისამართი</string> <string name="live_monitoring_url">ცოცხალი დევნის ვებ-მისამართი</string>
<string name="gpx_monitoring_disabled_warn">გთხოვთ ჩართოთ \'დევნის GPX ჟურნალში ჩაწერა\' დევნის პარამეტრებში.</string> <string name="gpx_monitoring_disabled_warn">გთხოვთ ჩართოთ \'დევნის GPX ჟურნალში ჩაწერა\' დევნის პარამეტრებში.</string>
<string name="show_current_gpx_title">მიმდინარე დევნის ჩვენება</string> <string name="show_current_gpx_title">მიმდინარე დევნის ჩვენება</string>

View file

@ -91,7 +91,7 @@
<string name="live_monitoring">라이브 트래킹 활성화</string> <string name="live_monitoring">라이브 트래킹 활성화</string>
<string name="live_monitoring_interval_descr">라이브 트래킹 시간 간격을 설정합니다</string> <string name="live_monitoring_interval_descr">라이브 트래킹 시간 간격을 설정합니다</string>
<string name="live_monitoring_interval">라이브 트래킹 시간 간격</string> <string name="live_monitoring_interval">라이브 트래킹 시간 간격</string>
<string name="live_monitoring_url_descr">라이브 트래킹 웹 주소를 설정합니다. 매개변수 형식 : 위도={0}, 경도={1}, 시간={2}, hdop={3}, 고도={4}, 속도={5}</string> <string name="live_monitoring_url_descr">라이브 트래킹 웹 주소를 설정합니다. 매개변수 형식 : 위도={0}, 경도={1}, 시간={2}, hdop={3}, 고도={4}, 속도={5}, bearing={6}</string>
<string name="live_monitoring_url">라이브 트래킹 웹 주소</string> <string name="live_monitoring_url">라이브 트래킹 웹 주소</string>
<string name="gpx_monitoring_disabled_warn">\'Log track to GPX\' 트래킹 설정을 활성화하세요</string> <string name="gpx_monitoring_disabled_warn">\'Log track to GPX\' 트래킹 설정을 활성화하세요</string>
<string name="show_current_gpx_title">현재 트랙을 보여줍니다</string> <string name="show_current_gpx_title">현재 트랙을 보여줍니다</string>

View file

@ -213,7 +213,7 @@
<string name="live_monitoring">Tiesioginis sekimas internete</string> <string name="live_monitoring">Tiesioginis sekimas internete</string>
<string name="live_monitoring_interval_descr">Nurodyti tiesioginio sekimo intervalą</string> <string name="live_monitoring_interval_descr">Nurodyti tiesioginio sekimo intervalą</string>
<string name="live_monitoring_interval">Tiesioginio sekimo intervalas</string> <string name="live_monitoring_interval">Tiesioginio sekimo intervalas</string>
<string name="live_monitoring_url_descr">Nurodykite interneto adresą su tokia parametrų sintakse : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Nurodykite interneto adresą su tokia parametrų sintakse : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Tiesioginio sekimo tarnybos interneto adresas</string> <string name="live_monitoring_url">Tiesioginio sekimo tarnybos interneto adresas</string>
<string name="gpx_monitoring_disabled_warn">Turite įjungti \'Išsaugoti kelionės istoriją į GPX\' sekimo nustatymą.</string> <string name="gpx_monitoring_disabled_warn">Turite įjungti \'Išsaugoti kelionės istoriją į GPX\' sekimo nustatymą.</string>
<string name="show_current_gpx_title">Rodyti dabartinės kelionės istoriją</string> <string name="show_current_gpx_title">Rodyti dabartinės kelionės istoriją</string>

View file

@ -103,7 +103,7 @@
<string name="live_monitoring">Tiešsaistes sekošana</string> <string name="live_monitoring">Tiešsaistes sekošana</string>
<string name="live_monitoring_interval_descr">Norādīt tiešsaistes sekošanas intervālu</string> <string name="live_monitoring_interval_descr">Norādīt tiešsaistes sekošanas intervālu</string>
<string name="live_monitoring_interval">Tiešaistes sekošanas intervāls</string> <string name="live_monitoring_interval">Tiešaistes sekošanas intervāls</string>
<string name="live_monitoring_url_descr">Norādiet web adresi ar parametru sintaksi : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Norādiet web adresi ar parametru sintaksi : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Tiešaistes sekošanas web adrese</string> <string name="live_monitoring_url">Tiešaistes sekošanas web adrese</string>
<string name="gpx_monitoring_disabled_warn">Lūdzu iespējojat \'Ierakstīt treku GPX failā\' uzstādījumu.</string> <string name="gpx_monitoring_disabled_warn">Lūdzu iespējojat \'Ierakstīt treku GPX failā\' uzstādījumu.</string>
<string name="show_current_gpx_title">Rādīt tekošo treku</string> <string name="show_current_gpx_title">Rādīt tekošo treku</string>

View file

@ -129,7 +129,7 @@
<string name="live_monitoring">Online tracking</string> <string name="live_monitoring">Online tracking</string>
<string name="live_monitoring_interval_descr">Specificeer interval voor online tracking</string> <string name="live_monitoring_interval_descr">Specificeer interval voor online tracking</string>
<string name="live_monitoring_interval">Interval voor online tracking</string> <string name="live_monitoring_interval">Interval voor online tracking</string>
<string name="live_monitoring_url_descr">Specificeer het webadres met parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, hoogte={4}, snelheid={5}</string> <string name="live_monitoring_url_descr">Specificeer het webadres met parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, hoogte={4}, snelheid={5}, bearing={6}</string>
<string name="live_monitoring_url">Webadres voor online tracking</string> <string name="live_monitoring_url">Webadres voor online tracking</string>
<string name="gpx_monitoring_disabled_warn">Zet eerst \'Registreer track in GPX-bestand\' aan.</string> <string name="gpx_monitoring_disabled_warn">Zet eerst \'Registreer track in GPX-bestand\' aan.</string>
<string name="show_current_gpx_title">Toon huidige track</string> <string name="show_current_gpx_title">Toon huidige track</string>

View file

@ -787,7 +787,7 @@
<string name="live_monitoring">Śledzenie online</string> <string name="live_monitoring">Śledzenie online</string>
<string name="live_monitoring_interval_descr">Określ interwał pomiędzy wysyłaniem danych</string> <string name="live_monitoring_interval_descr">Określ interwał pomiędzy wysyłaniem danych</string>
<string name="live_monitoring_interval">Interwał wysyłania danych</string> <string name="live_monitoring_interval">Interwał wysyłania danych</string>
<string name="live_monitoring_url_descr">Określ adres usługi webowej używając następujących parametrów ({n} określa dany parametr): {0}=lat, {1}=lon, {2}=znacznik czasu, {3}=HDOP, {4}=wysokość, {5}=prędkość</string> <string name="live_monitoring_url_descr">Określ adres usługi webowej używając następujących parametrów ({n} określa dany parametr): {0}=lat, {1}=lon, {2}=znacznik czasu, {3}=HDOP, {4}=wysokość, {5}=prędkość, bearing={6}</string>
<string name="live_monitoring_url">Adres śledzenia online</string> <string name="live_monitoring_url">Adres śledzenia online</string>
<string name="gpx_monitoring_disabled_warn">Proszę włączyć ustawienia \'Zapisuj ślad GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Proszę włączyć ustawienia \'Zapisuj ślad GPX\'.</string>
<string name="show_current_gpx_title">Pokaż aktualną ścieżkę</string> <string name="show_current_gpx_title">Pokaż aktualną ścieżkę</string>

View file

@ -573,7 +573,7 @@
<string name="live_monitoring">Online live tracking</string> <string name="live_monitoring">Online live tracking</string>
<string name="live_monitoring_interval_descr">Specify live tracking interval</string> <string name="live_monitoring_interval_descr">Specify live tracking interval</string>
<string name="live_monitoring_interval">Live tracking interval</string> <string name="live_monitoring_interval">Live tracking interval</string>
<string name="live_monitoring_url_descr">Specify the web address with parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specify the web address with parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Live tracking web address</string> <string name="live_monitoring_url">Live tracking web address</string>
<string name="gpx_monitoring_disabled_warn">Please enable \'Log track to GPX\' Tracking settings.</string> <string name="gpx_monitoring_disabled_warn">Please enable \'Log track to GPX\' Tracking settings.</string>
<string name="show_current_gpx_title">Mostrar rota atual</string> <string name="show_current_gpx_title">Mostrar rota atual</string>

View file

@ -369,7 +369,7 @@
<string name="live_monitoring">Monitorizare online a poziției</string> <string name="live_monitoring">Monitorizare online a poziției</string>
<string name="live_monitoring_interval_descr">Specificarea intervalului de timp între două trimiteri consecutive ale poziției curente</string> <string name="live_monitoring_interval_descr">Specificarea intervalului de timp între două trimiteri consecutive ale poziției curente</string>
<string name="live_monitoring_interval">Intervalul de trimitere a poziției</string> <string name="live_monitoring_interval">Intervalul de trimitere a poziției</string>
<string name="live_monitoring_url_descr">Specificarea adresei de web la care se trimit coordonatele poziției curente cu sintaxa: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specificarea adresei de web la care se trimit coordonatele poziției curente cu sintaxa: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Adresa web a serviciului de monitorizare</string> <string name="live_monitoring_url">Adresa web a serviciului de monitorizare</string>
<string name="gpx_monitoring_disabled_warn">Vă rog să activați opțiunea \'Salvează traseul GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Vă rog să activați opțiunea \'Salvează traseul GPX\'.</string>
<string name="show_current_gpx_title">Arată traseul curent</string> <string name="show_current_gpx_title">Arată traseul curent</string>

View file

@ -158,7 +158,7 @@
<string name="live_monitoring">Включить Live слежение</string> <string name="live_monitoring">Включить Live слежение</string>
<string name="live_monitoring_interval_descr">Укажите интервал Live слежения</string> <string name="live_monitoring_interval_descr">Укажите интервал Live слежения</string>
<string name="live_monitoring_interval">Интервал Live слежения</string> <string name="live_monitoring_interval">Интервал Live слежения</string>
<string name="live_monitoring_url_descr">Укажите адрес Live слежения со следующими параметрами : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Укажите адрес Live слежения со следующими параметрами : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Web адрес Live слежения</string> <string name="live_monitoring_url">Web адрес Live слежения</string>
<string name="gpx_monitoring_disabled_warn">Пожалуйста включите \'Записывать путь в GPX\' в Настройках.</string> <string name="gpx_monitoring_disabled_warn">Пожалуйста включите \'Записывать путь в GPX\' в Настройках.</string>
<string name="show_current_gpx_title">Показывать текущий путь</string> <string name="show_current_gpx_title">Показывать текущий путь</string>

View file

@ -217,7 +217,7 @@
<string name="live_monitoring">Zapnúť stopovanie naživo</string> <string name="live_monitoring">Zapnúť stopovanie naživo</string>
<string name="live_monitoring_interval_descr">Určenie intervalu stopovania naživo</string> <string name="live_monitoring_interval_descr">Určenie intervalu stopovania naživo</string>
<string name="live_monitoring_interval">Interval stopovania naživo</string> <string name="live_monitoring_interval">Interval stopovania naživo</string>
<string name="live_monitoring_url_descr">Určenie webovej adresy stopovania naživo so syntaxom parametrov: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Určenie webovej adresy stopovania naživo so syntaxom parametrov: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Webová adresa stopovania naživo</string> <string name="live_monitoring_url">Webová adresa stopovania naživo</string>
<string name="gpx_monitoring_disabled_warn">Prosím, zapnite \'Zaznemať stopu do GPX\' v stopovacích nastaveniach.</string> <string name="gpx_monitoring_disabled_warn">Prosím, zapnite \'Zaznemať stopu do GPX\' v stopovacích nastaveniach.</string>
<string name="show_current_gpx_title">Zobraziť aktuálnu stopu</string> <string name="show_current_gpx_title">Zobraziť aktuálnu stopu</string>

View file

@ -688,7 +688,7 @@
<string name="live_monitoring">Spletno sledenje v živo</string> <string name="live_monitoring">Spletno sledenje v živo</string>
<string name="live_monitoring_interval_descr">Določi interval sledenja v živo</string> <string name="live_monitoring_interval_descr">Določi interval sledenja v živo</string>
<string name="live_monitoring_interval">Interval sledenja v živo</string> <string name="live_monitoring_interval">Interval sledenja v živo</string>
<string name="live_monitoring_url_descr">Določite spletne naslove s skladnjo parametrov: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Določite spletne naslove s skladnjo parametrov: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Spletni naslov za sledenje v živo</string> <string name="live_monitoring_url">Spletni naslov za sledenje v živo</string>
<string name="gpx_monitoring_disabled_warn">Omogočite nastavitev \'Beleži sled v datoteko GPX\'.</string> <string name="gpx_monitoring_disabled_warn">Omogočite nastavitev \'Beleži sled v datoteko GPX\'.</string>
<string name="profile_settings">Za profil določene nastavitve</string> <string name="profile_settings">Za profil določene nastavitve</string>

View file

@ -318,7 +318,7 @@
<string name="live_monitoring">Online Live-spårning</string> <string name="live_monitoring">Online Live-spårning</string>
<string name="live_monitoring_interval_descr">Ange intervall för Live tracking</string> <string name="live_monitoring_interval_descr">Ange intervall för Live tracking</string>
<string name="live_monitoring_interval">Intervall för Live tracking</string> <string name="live_monitoring_interval">Intervall för Live tracking</string>
<string name="live_monitoring_url_descr">Ange webbadressen med parametersyntax: lat={0}, lon={1}, tidsstämpel={2}, hdop={3}, höjd={4}, hastighet={5}</string> <string name="live_monitoring_url_descr">Ange webbadressen med parametersyntax: lat={0}, lon={1}, tidsstämpel={2}, hdop={3}, höjd={4}, hastighet={5}, bearing={6}</string>
<string name="live_monitoring_url">Webbadress för Live tracking</string> <string name="live_monitoring_url">Webbadress för Live tracking</string>
<string name="gpx_monitoring_disabled_warn">Aktivera \'Logga spår till GPX-fil\'-inställningar.</string> <string name="gpx_monitoring_disabled_warn">Aktivera \'Logga spår till GPX-fil\'-inställningar.</string>
<string name="show_current_gpx_title">Visa aktuellt spår</string> <string name="show_current_gpx_title">Visa aktuellt spår</string>

View file

@ -657,7 +657,7 @@
<string name="live_monitoring">Çevrimiçi canlı izleme</string> <string name="live_monitoring">Çevrimiçi canlı izleme</string>
<string name="live_monitoring_interval_descr">Canlı izleme aralığı belirtin</string> <string name="live_monitoring_interval_descr">Canlı izleme aralığı belirtin</string>
<string name="live_monitoring_interval">Canlı izleme aralığı</string> <string name="live_monitoring_interval">Canlı izleme aralığı</string>
<string name="live_monitoring_url_descr">"Parametre sözdizimi ile web adresini belirtin: Enlem={0}, Boylam={1}, Damga zamanı={2}, HDOP={3}, Rakım={4}, Hız={5} "</string> <string name="live_monitoring_url_descr">"Parametre sözdizimi ile web adresini belirtin: Enlem={0}, Boylam={1}, Damga zamanı={2}, HDOP={3}, Rakım={4}, Hız={5}, bearing={6} "</string>
<string name="live_monitoring_url">Web adresinden izlemeyi canlı izlemek</string> <string name="live_monitoring_url">Web adresinden izlemeyi canlı izlemek</string>
<string name="gpx_monitoring_disabled_warn">Lütfen \'GPX dosyası yolunda oturum\'ayarlarını etkinleştirin.</string> <string name="gpx_monitoring_disabled_warn">Lütfen \'GPX dosyası yolunda oturum\'ayarlarını etkinleştirin.</string>
<string name="show_current_gpx_title">Geçerli izi göster</string> <string name="show_current_gpx_title">Geçerli izi göster</string>

View file

@ -178,7 +178,7 @@
<string name="live_monitoring">Online live tracking</string> <string name="live_monitoring">Online live tracking</string>
<string name="live_monitoring_interval_descr">Specify live tracking interval</string> <string name="live_monitoring_interval_descr">Specify live tracking interval</string>
<string name="live_monitoring_interval">Live tracking interval</string> <string name="live_monitoring_interval">Live tracking interval</string>
<string name="live_monitoring_url_descr">Specify the web address with parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specify the web address with parameter syntax : lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Live tracking web address</string> <string name="live_monitoring_url">Live tracking web address</string>
<string name="gpx_monitoring_disabled_warn">Будь ласка, ввімкніть \"Записувати шлях в GPX\" в Нашаштуваннях.</string> <string name="gpx_monitoring_disabled_warn">Будь ласка, ввімкніть \"Записувати шлях в GPX\" в Нашаштуваннях.</string>
<string name="show_current_gpx_title">Відображати пройдений шлях</string> <string name="show_current_gpx_title">Відображати пройдений шлях</string>

View file

@ -341,7 +341,7 @@
<string name="live_monitoring">線上即時追蹤</string> <string name="live_monitoring">線上即時追蹤</string>
<string name="live_monitoring_interval_descr">指定線上即時追蹤間隔</string> <string name="live_monitoring_interval_descr">指定線上即時追蹤間隔</string>
<string name="live_monitoring_interval">線上即時追蹤間隔</string> <string name="live_monitoring_interval">線上即時追蹤間隔</string>
<string name="live_monitoring_url_descr">指定位置的參數語法lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">指定位置的參數語法lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">線上即時追蹤網路地址</string> <string name="live_monitoring_url">線上即時追蹤網路地址</string>
<string name="gpx_monitoring_disabled_warn">請啟用\'記錄航跡成 GPX 檔案\'設定。</string> <string name="gpx_monitoring_disabled_warn">請啟用\'記錄航跡成 GPX 檔案\'設定。</string>
<string name="show_current_gpx_title">顯示目前航跡</string> <string name="show_current_gpx_title">顯示目前航跡</string>

View file

@ -780,7 +780,7 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
<string name="live_monitoring">Online tracking</string> <string name="live_monitoring">Online tracking</string>
<string name="live_monitoring_interval_descr">Specify online tracking interval</string> <string name="live_monitoring_interval_descr">Specify online tracking interval</string>
<string name="live_monitoring_interval">Online tracking interval</string> <string name="live_monitoring_interval">Online tracking interval</string>
<string name="live_monitoring_url_descr">Specify the web address with parameter syntax: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}</string> <string name="live_monitoring_url_descr">Specify the web address with parameter syntax: lat={0}, lon={1}, timestamp={2}, hdop={3}, altitude={4}, speed={5}, bearing={6}</string>
<string name="live_monitoring_url">Online tracking web address</string> <string name="live_monitoring_url">Online tracking web address</string>
<string name="gpx_monitoring_disabled_warn">Please enable \'Log track to GPX file\' settings.</string> <string name="gpx_monitoring_disabled_warn">Please enable \'Log track to GPX file\' settings.</string>
<string name="show_current_gpx_title">Show current track</string> <string name="show_current_gpx_title">Show current track</string>

View file

@ -47,21 +47,18 @@ public class LiveMonitoringHelper {
if (OsmAndLocationProvider.isPointAccurateForRouting(location) && isLiveMonitoringEnabled() if (OsmAndLocationProvider.isPointAccurateForRouting(location) && isLiveMonitoringEnabled()
&& OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) { && OsmandPlugin.getEnabledPlugin(OsmandMonitoringPlugin.class) != null) {
long locationTime = System.currentTimeMillis(); long locationTime = System.currentTimeMillis();
insertData(location.getLatitude(), location.getLongitude(), location.getAltitude(), //* 1000 in next line seems to be wrong with new IntervalChooseDialog
location.getSpeed(), location.getAccuracy(), locationTime, settings); //if (time - lastTimeUpdated > settings.LIVE_MONITORING_INTERVAL.get() * 1000) {
if (locationTime - lastTimeUpdated > settings.LIVE_MONITORING_INTERVAL.get()) {
LiveMonitoringData data = new LiveMonitoringData((float)location.getLatitude(), (float)location.getLongitude(),
(float) location.getAltitude(),(float) location.getSpeed(),(float) location.getAccuracy(), (float) location.getBearing(), locationTime );
new LiveSender().execute(data);
lastTimeUpdated = locationTime;
}
} }
} }
public void insertData(double lat, double lon, double alt, double speed, double hdop, long time, OsmandSettings settings){
//* 1000 in next line seems to be wrong with new IntervalChooseDialog
//if (time - lastTimeUpdated > settings.LIVE_MONITORING_INTERVAL.get() * 1000) {
if (time - lastTimeUpdated > settings.LIVE_MONITORING_INTERVAL.get()) {
LiveMonitoringData data = new LiveMonitoringData((float)lat, (float)lon,(float) alt,(float) speed,(float) hdop, time );
new LiveSender().execute(data);
lastTimeUpdated = time;
}
}
private static class LiveMonitoringData { private static class LiveMonitoringData {
@ -69,16 +66,18 @@ public class LiveMonitoringHelper {
private final float lon; private final float lon;
private final float alt; private final float alt;
private final float speed; private final float speed;
private final float bearing;
private final float hdop; private final float hdop;
private final long time; private final long time;
public LiveMonitoringData(float lat, float lon, float alt, float speed, float hdop, long time) { public LiveMonitoringData(float lat, float lon, float alt, float speed, float hdop, float bearing, long time) {
this.lat = lat; this.lat = lat;
this.lon = lon; this.lon = lon;
this.alt = alt; this.alt = alt;
this.speed = speed; this.speed = speed;
this.hdop = hdop; this.hdop = hdop;
this.time = time; this.time = time;
this.bearing = bearing;
} }
} }
@ -99,7 +98,7 @@ public class LiveMonitoringHelper {
String st = settings.LIVE_MONITORING_URL.get(); String st = settings.LIVE_MONITORING_URL.get();
List<String> prm = new ArrayList<String>(); List<String> prm = new ArrayList<String>();
int maxLen = 0; int maxLen = 0;
for(int i = 0; i < 6; i++) { for(int i = 0; i < 7; i++) {
boolean b = st.contains("{"+i+"}"); boolean b = st.contains("{"+i+"}");
if(b) { if(b) {
maxLen = i; maxLen = i;
@ -125,6 +124,9 @@ public class LiveMonitoringHelper {
case 5: case 5:
prm.add(data.speed + ""); prm.add(data.speed + "");
break; break;
case 6:
prm.add(data.bearing + "");
break;
default: default:
break; break;