<?php
//获取停车场详情
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$pid = '158';
$url = "https://api.jisuepc.com/parking/detail?appkey=$appkey&pid=$pid";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['totalCount'].' ';
foreach($result['list'] as $val)
{
echo $val['pid'].' '.$val['name'].' '.$val['type'].' '.$val['province'].' '.$val['city'].' '.$val['area'].' '.$val['address'].' '.$val['lat'].' '.$val['lng'].' '.$val['num'].' '.$val['leftnum'].' '.$val['price'].' '.$val['priceuit'].' '.$val['pricedesc'].' '.$val['canbook'].' '.$val['bookprice'].' '.$val['piclist'].'
';
}