From 903a8bd3f70639e64abdd9456480b0c62f5553b0 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Thu, 11 Feb 2021 08:48:53 +0000 Subject: [PATCH] Add to rider cache rider's current location. #535 --- utils/mqtt_rider_convert/mqtt_rider_convert.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/mqtt_rider_convert/mqtt_rider_convert.py b/utils/mqtt_rider_convert/mqtt_rider_convert.py index ce9db786..8f97a04a 100644 --- a/utils/mqtt_rider_convert/mqtt_rider_convert.py +++ b/utils/mqtt_rider_convert/mqtt_rider_convert.py @@ -68,3 +68,6 @@ def on_message(client, userdata, message): #print payload client.publish(channel, payload) + + # add to rider_cache rider's latest location + redis_conn.geoadd('loc_rider_active', rider_log, rider_lat, rider_id)