I have meta data that is stored in mysql with geostamps. I want to extract the lat and long for a specific set of data my for the life of me cant figure out the syntax to specify the level down to the value
I need the values seperate so i can use it to check if that location matches witht he location on record and if not distance away. The gps calculation part is simple.
The string of data I am interested looks like this:
"outcome_rating":{"value":"continue_support","timestamp":"2019-05-29 16:11:07", "geostamp":"lat=-29.787506666666665, long=31.022944999999996, alt=64.0, accuracy=8.2"}
The table is called "monitorings" The field is called "devicemagic_metadata"
My attempt
SELECT
select JSON_EXTRACT(devicemagic_metadata, "$.outcome_rating"."$.geostamp"."$.lat")
FROM monitorings;
Any help or direction would be apreciated