码迷,mamicode.com
首页 > 其他好文 > 详细

Helpers\GeoCode

时间:2016-07-05 14:02:38      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:

Helpers\GeoCode

This function connects to google maps and retrieves the lat/lon of the address provided

GeoCode::getLngLat([‘Hessle Road‘, ‘Hull‘])

Returns:

Array
(
    [lon] => -0.348839
    [lat] => 53.7388284
)

Parameters are passed as an array there are 4 keys that can be used:

  1. Street
  2. City
  3. State
  4. zipcode

Helpers\GeoCode

标签:

原文地址:http://www.cnblogs.com/chunguang/p/5643182.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!