/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// ------------------------------------------ // converts a string with a stret address // into a couple of lat, long coordinates. // ------------------------------------------ public function getLatLong($address){ $_result = false; $_coords['lat'] = $_match[1]; $_coords['long'] = $_match[2]; } return $_coords; }