我尝试在 PHP 中回显地址的提升。我正在使用 Google Elevation API -链接
我已经有了纬度和经度。以下链接:
https://maps.googleapis.com/maps/api/elevation/json?locations=40.7143528,-74.0059731&key=myapikey
将在 json 中产生这些结果:
{
"results" : [
{
"elevation" : 9.774918556213379,
"location" : {
"lat" : 40.7143528,
"lng" : -74.00597310000001
},
"resolution" : 19.08790397644043
}
],
"status" : "OK"
}
我怎样才能呼应海拔?就像是<?php echo 'elevation'; ?>
谢谢