zl程序教程

您现在的位置是:首页 >  其它

当前栏目

Helpers\GeoCode

2023-09-11 14:14:35 时间

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