How to disable Google Maps feature and annoying "Keyless access depreciated"

Hi,

How can I properly disable Google Maps feature?
I use only pre-defined locations instead.

I have disabled fields related to Google Maps in DJ-Classifieds Global Settings. So it doesn't appear anywhere.

However, every time user adds/edit new ad annoying notification appears

Error
Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to g.co/dev/maps-no-account


Thanks

Comments

  • Hello

    To disable this Google Maps notification please in file administrator/components/com_djclassifieds/lib/djgeocoder.php
    an lines 49-51 , 81-83, 100-102 change code from
    if($params->get('map_api_key','')){
    $url .= '&key='.$params->get('map_api_key','');
    }
    to
    if($params->get('map_api_key','')){
    $url .= '&key='.$params->get('map_api_key','');
    }else{
    return false;
    }

    so when you don't provide maps key then function won't geocode address.
    We will add this to next update.

    Best Regards,
    Lukasz
  • Hi Lukasz,

    Thank you very match.
    You helped me a lot!

    Best regards,
    Dmitrii
  • Great to hear that I could help :)

    Best Regards,
    Lukasz
Sign In or Register to comment.