Select to view content in your preferred language

Get JSON data by PHP

401
0
07-13-2023 06:26 AM
Vakhtang_Zubiashvili
Occasional Contributor III

Hi guyz,

I try to get JSON data from GIS server using PHP, but i couldn't, i use this code:

 

<?php

$curl= curl_init();
 curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
 curl_setopt($curl, CURLOPT_URL, 'http://127.0.0.0:6080/arcgis/rest/services/Water_Incidents/GWP_WATER_2023/FeatureServer/0/query?where=1%3D1&objectIds=&time=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&gdbVersion=&historicMoment=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=xyFootprint&resultOffset=&resultRecordCount=&returnTrueCurves=false&returnExceededLimitFeatures=false&quantizationParameters=&returnCentroid=false&timeReferenceUnknownClient=false&sqlFormat=standard&resultType=&featureEncoding=esriDefault&datumTransformation=&f=json');
 $res = curl_exec($curl);
 curl_close($curl);
 $jo = json_decode($res);
 echo $jo->features;

?>

 

 
how can i get this data any idea?
 
Thanks
0 Kudos
0 Replies