corrected some  warning
updated latitude and longitude with double

PHP expects double type