Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Undefined offset: 1" #41

Open
davidivab opened this issue Nov 9, 2019 · 0 comments
Open

"Undefined offset: 1" #41

davidivab opened this issue Nov 9, 2019 · 0 comments

Comments

@davidivab
Copy link

Hi Farhan Wazir, this package works fine, I love it, thanks a lot.

I have one problem to isMarkerInsideGeofence in laravel, my code is

$polygon = array('25.774,-80.190', '18.466,-66.118', '32.321,-64.757', '25.774,-80.190'); $latlngs = array('-12.043333,-77.028333', '-12.043333,-77.028333'); $mapStatus = GMaps::isMarkerInsideGeofence($polygon, $latlngs);

and Laravel response is
private function pointStringToCoordinates($pointString) { if(strpos($pointString, ", ") !== false) $coordinates = explode(", ", $pointString); elseif(strpos($pointString, ",") !== false) $coordinates = explode(", ", $pointString); else $coordinates = explode(" ", $pointString); return array("x" => $coordinates[0], "y" => $coordinates[1]); }

"Undefined offset: 1"

Captura de Pantalla 2019-11-09 a la(s) 5 44 15 p  m

Do you have any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant