bobbingwide / oik

OIK Information Kit
https://www.oik-plugins.com/oik-plugins/oik
GNU General Public License v2.0
2 stars 0 forks source link

Lat and long not being determined using bw_geocode_googlemap #112

Open bobbingwide opened 5 years ago

bobbingwide commented 5 years ago

As noted in https://github.com/bobbingwide/tags/issues/5 there are two problems with the call to the Google Map API to obtain the lat and long.

  1. Missing API key
  2. Not using https

When these are corrected the request works. The solution involves calling bw_gmap_get_api_key. If this is not set then there’s no point making the call.

bobbingwide commented 3 years ago

Well, since this is still open. I recently got a couple of Notices while updating the address on rngs.org.uk I'd blanked out lat and long in order to get Google to do the geolocation.

Notice: Undefined variable: lat in /home/rngs/public_html/wp-content/plugins/oik/shortcodes/oik-googlemap.php on line 501

Notice: Undefined variable: long in /home/rngs/public_html/wp-content/plugins/oik/shortcodes/oik-googlemap.php on line 502