Google Maps - converting address to latitude & longitude - PHP backend?

后端 未结 4 1394
自闭症患者
自闭症患者 2021-01-02 01:09

is it possible to convert (in PHP back-end):


to

         


        
4条回答
  •  时光说笑
    2021-01-02 01:28

     this will work please try this one i have tested it .
     results[0]->geometry->location->lat;
                 $long = $output->results[0]->geometry->location->lng;
    
                 echo $address.'
    Lat: '.$lat.'
    Long: '.$long; ?>

提交回复
热议问题