mattia Posted June 1, 2016 Report Posted June 1, 2016 Hi Guys, i need help with the json for the phpvms live map, this is the exmple code [{"flightnum":"IV7050","deptime":"2016-06-01 16:47:00","arrtime":"17:01:39","gs":"397","alt":"26955","lat":"41.340347359635","lng":"-72.46185414378","phasedetail":"Climbing","timeremaining":"07:45:00","online":"No","depicao":"KJFK","arricao":"LFPO","heading":"68","distremain":"3080","aircraftname":"B747-400", "zone":"[{"Latitude":34.647995,"Longitude":-86.738549}]", "code":"IV","pilotid":"IV0018","firstname":"Mattia","lastname":"test","deplat":"40.6398","deplng":"-73.7789","arrlat":"48.7253","arrlng":"2.35944","route_details":[],"percomplete":2.32,"distremaining":"3080","pilotname":"Mattia"}] I have added a field called "zone" but how to remove the double quotes (marked in red) only for this field?? please help me Thanks Mattia Quote
Members Vangelis Posted June 1, 2016 Members Report Posted June 1, 2016 wich function do you use to get these results ? Quote
web541 Posted June 1, 2016 Report Posted June 1, 2016 Depends what you want to do with it wich function do you use to get these results ? Agreed, would like to know also. And what do you plan on using this for? (this maybe? http://forum.phpvms.net/topic/23696-flight-path-on-google-maps ) Quote
mattia Posted June 2, 2016 Author Report Posted June 2, 2016 i have solved the problem by using json_decode before insert data in array. Quote
mattia Posted June 2, 2016 Author Report Posted June 2, 2016 now have this problem: http://forum.phpvms.net/topic/23705-autorefresh-polyline-google-maps/#entry124690 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.