jeudi 28 juin 2018

how to get specific data from Json and display in Google map in rails

i connected to DB NOSQL online return json value

for example

{
  "_id"=>"5b2e880c1de0c46b00001dda",
  "gps_lattitude"=>"30.63",
  "gps_longitude"=>"31.09",
  "gps_speed_kph"=>"0.1",
  "gps_heading"=>"129.36",
  "gsm_csecond"=>58,
  "gsm_second"=>46,
  "gsm_minute"=>35,
  "gsm_hour"=>21,
  "gsm_month"=>6,
  "gsm_day"=>20,
  "gsm_year"=>2018,
  "HWID"=>"AC37439773C8",
  "pulse_rate"=>585,
  "recrdID"=>458
}

need display gps_longitude & gps_lattitude to google map

when work with sql database can do it easy but not know how can do it use json

Aucun commentaire:

Enregistrer un commentaire