Invalid coordinate format
-
Hello,
Since this morning the plugin stopped working. I think google updated the way they format their coordinates for PHP and Javascript. Or something changed for me locally..
Anyway your google_map_get_coordinates function returns the latitude and longitude coordinates with a comma: 53,213451 but google requires it to be seperated using a period. Like: 53.213451.
To fix this I replaced the following lines in wp-google-map-shortcode.php lines 160,161
$cache_value['lat'] = str_replace(",",".",$coordinates->lat); $cache_value['lng'] = str_replace(",",".",$coordinates->lng);
I hope you can add this to the new update. Thanks ??
- The topic ‘Invalid coordinate format’ is closed to new replies.