GPS Tracking Configs
Problem Statement: What are the configs to be enabled for getting correct GPS tracking?
Product : TMS
Steps to Enable this Feature :
1. Enabling Configs on IDB
riderapp_live_tracking_firebase_config:
{
"firebase_project_id": "rider-app-prod"
}
update_firebase_coordinates:
true
use_location_module_v2:
true
battery_based_intervals:
[
{
"battery_threshold": 1,
"status_send_interval_min": 5000,
"status_send_interval_max": 10000,
"status_send_distance": 5,
"gps_sampling_interval": 60000,
"event_file_interval": 60000,
"get_settings_interval": 300000,
"vitalstats_interval": 30000,
"vitalstats_sampling_interval": 30000
}
]
auto_refresh_rider_location_tracking:
{
"polling_enabled": true,
"polling_frequency": 15000
}
2. Migration Run to show on tracking page (to fetch data from elastic)
INSERT INTO ALLOCATIONSETTINGS
(name, value, type, organisation_id, created_at, updated_at, is_active)
VALUES ('firebase_live_tracking', true, 'app_settings',{org name}, NOW(), NOW(), true);
const id_created = SELECT * FROM ALLOCATIONSETTINGS WHERE organisation_id = {org name};
INSERT INTO ALLOCATIONSETTINGSMAPPING
(organisation_id, hub_id, worker_id, setting_id, created_at, updated_at, is_active)
VALUES ({org name}, null, null,{id_created}, NOW(), NOW(), true);
3. Logs to Check if Pings are Being Received or Not
4. Where to View the Actual Trip
FM & LM Trips > Tracking
How to check Logs (Elasticsearch/Metabase/Newrelic): https://ridergpselasticsearch.shipsy.io/_dashboards/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-120m,to:now))&_a=(columns:!(_source),filters:!(),index:'0b2d0830-939a-11ec-bcc5-9f0921bd9355',interval:auto,query:(language:kuery,query:''),sort:!())