我是一个CakePHP的2.x的工作..我已经实现了谷歌地图为我的应用程序的地址...我使用这个辅助CakePHP的得到纬度和经度谷歌地图
https://github.com/marcferna/CakePHP-GoogleMapHelper
什么我想要的是我想得到的经度和地位的基础..不知道我怎么能得到这个,因为我从来没有在谷歌地图之前...
这里是我的观点页的代码正在显示地图
$map_options = array(
'id' => 'map_canvas',
'width' => '950px',
'height' => '600px',
'style' => '',
'zoom' => 16,
'type' => 'ROADMAP',
'custom' => null,
'localize' => false,
'latitude' => $latitude,
'longitude' => $longitude,
'address' => '1 Infinite Loop, Cupertino',
'marker' => true,
'markerTitle' => 'This is my position',
'markerIcon' => 'http://google-maps-icons.googlecode.com/files/home.png',
'markerShadow' => 'http://google-maps-icons.googlecode.com/files/shadow.png',
'infoWindow' => true,
'windowText' => 'My Position'
);
?>
<?php echo $this->GoogleMap->map($map_options);
以及我有经度和lattitude ......我想以检索这两个基本的地址......在简单的PHP,我们可以做这样的事情格式的地址 – mynameisjohn