Osclass Support Forums

Osclass plugin support => Free Osclass Plugins => Topic started by: Farouk El Gharbaoui on December 24, 2022, 01:25:24 PM

Title: Google Map plugin
Post by: Farouk El Gharbaoui on December 24, 2022, 01:25:24 PM
Hi, I tried the Google Map plugin to correctly get Latitude and longitude coordinate from geocode Api but unfortunately doesn't saved on my Data base, each time they retrieve the Lat and Long from the city_lat and city_long data
Title: Re: Google Map plugin
Post by: MB Themes on December 24, 2022, 03:12:28 PM
Not sure if google maps populate coordinates.
Title: Re: Google Map plugin
Post by: Farouk El Gharbaoui on December 25, 2022, 02:08:07 PM
Google map properly get Lat and Long from geocode API.

First problem is the line 50 at the index.php of the plugin : need  to add 's' to http and add the API KEY at the end of the url like this : https.......geocode/json?address=%s&sensor=false&key="YOUR API KEY"

Second problem i faced is coming from the PHP Version in my server  the pLugin doesn't work with 8.0 php version but perfectly working with the 7.4 version
Title: Re: Google Map plugin
Post by: MB Themes on December 25, 2022, 02:10:45 PM
Ok so you mean coordinates to show item on map.
Plugin is quite old and not updated, as google services are bot free anymore.
Api key is now rewuired.
Php 8 may generate notices & warnings as in most of applications.