Osclass forums

Support forums => General help => Topic started by: BritWeb on May 03, 2018, 01:07:00 am

Title: Important - Google is going to charge developers for using their map API
Post by: BritWeb on May 03, 2018, 01:07:00 am
Hi

Just got an email from Google saying that they will start charging developers for using their map API

Quote
We would like to highlight a few updates that may impact your implementation. Beginning June 11th, we are launching our new pricing plan and providing all users access to support. We’ll continue to offer a free tier — all developers will receive $200 of free monthly usage of our core products.

In addition, this change will require you to enable billing and associate it with all of your Google Maps Platform projects. Creating a billing account helps us better understand your usage so we can continue developing helpful products. It also allows you to scale easily with less downtime and fewer performance issues if your product grows beyond the $200 of free monthly usage. For additional visibility and control you can set daily quotas or billing alerts..

FYI

Thanks

Title: Re: Important - Google is going to charge developers for using their map API
Post by: p206ab on May 03, 2018, 11:52:01 am
Bing maps it is then..  :(

Wait.. the Google Maps plugin from Osclass doesn't have an API key inside?
Title: Re: Important - Google is going to charge developers for using their map API
Post by: marius-ciclistu on May 03, 2018, 11:59:18 am
That plugin did not work after inserting google api  code anyway.
Title: Re: Important - Google is going to charge developers for using their map API
Post by: cartagena68 on May 03, 2018, 06:50:54 pm
Developpers have 200 USD of free monthly usage, they calculate that 98% of developpers will still use google map for free
Title: Re: Important - Google is going to charge developers for using their map API
Post by: BritWeb on May 03, 2018, 09:04:25 pm
Developpers have 200 USD of free monthly usage, they calculate that 98% of developpers will still use google map for free

This may be be true but the developers who use their API should open an account with credit card details and this means if they overrun the usage, Google will suck the money out from their bank account.

Title: Re: Important - Google is going to charge developers for using their map API
Post by: p206ab on June 05, 2018, 12:05:56 pm
Just got an email that my website, based on Infinity theme does not use an API key and I should get one.
The terms have changed as it seems I fit into one-time 300$ bonus, not the monthly 200$ limit.

So.. it's time to change to Bing maps or something. Shall we discuss on how to? :)
Title: Re: Important - Google is going to charge developers for using their map API
Post by: BritWeb on June 05, 2018, 01:36:00 pm
Just got an email that my website, based on Infinity theme does not use an API key and I should get one.
The terms have changed as it seems I fit into one-time 300$ bonus, not the monthly 200$ limit.

So.. it's time to change to Bing maps or something. Shall we discuss on how to? :)

Good idea! Let's explore the options of using Bing Map (at least until they start charging site owners). I am using Gum Theme, hope the developer incorporates Bing Map replacing Google Map.
Title: Re: Important - Google is going to charge developers for using their map API
Post by: Summerpixie on June 06, 2018, 06:42:36 am
I deleted the Google Maps plugin now, I am not giving them my credit card details.  I am sure my site will never exceed the $200 monthly amount, but companies have a way of inventing use which never happened (I have bad experience from the past), so it is bye bye Google Maps, which is sad, because it is a nice feature. 

I could not get the other maps plugin to work.  :-\
Title: Re: Important - Google is going to charge developers for using their map API
Post by: p206ab on June 06, 2018, 03:04:30 pm
How about embedding?

Code: [Select]
<?php
            $addr 
= array();
            if( ( 
osc_item_address() != '' ) && ( osc_item_address() != null ) ) { $addr[] = osc_item_address(); }
            if( ( 
osc_item_city()  != '' ) && ( osc_item_city()  != null ) ) { $addr[] = osc_item_city(); }
            if( ( 
osc_item_zip() != '' ) && ( osc_item_zip() != null ) ) { $addr[] = osc_item_zip(); }
            if( ( 
osc_item_region() != '' ) && ( osc_item_region() != null ) ) { $addr[] = osc_item_region(); }
            if( ( 
osc_item_country()  != '' ) && ( osc_item_country()  != null ) ) { $addr[] = osc_item_country(); }
            
$address implode(", "$addr);
        
?>


Code: [Select]
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.it/maps?q=<?php echo $address?>&output=embed"></iframe>
No api here?  :D
Title: Re: Important - Google is going to charge developers for using their map API
Post by: Summerpixie on June 07, 2018, 08:05:02 am
Good idea.P206ab  :D
Title: Re: Important - Google is going to charge developers for using their map API
Post by: p206ab on June 07, 2018, 09:12:44 pm
I've updated the code above, it works for me. ;)
Title: Re: Important - Google is going to charge developers for using their map API
Post by: BritWeb on June 08, 2018, 12:24:06 am
I've updated the code above, it works for me. ;)

Brilliant!

Thank you, p206ab
Title: Re: Important - Google is going to charge developers for using their map API
Post by: yuvi087 on July 16, 2018, 08:42:42 pm
In Which File, i am insert this code?
Title: Re: Important - Google is going to charge developers for using their map API
Post by: p206ab on July 16, 2018, 09:27:39 pm
In Which File, i am insert this code?

Item.php of your theme, the part where map is displayed.
Title: Re: Important - Google is going to charge developers for using their map API
Post by: BritWeb on July 16, 2018, 09:34:28 pm
In Which File, i am insert this code?

This is the way I did it

Referring to the 'Bender' theme do as below

Place the map code just above the closing PHP tag as shown on item.php file

Code: [Select]
osc_current_web_theme_path('header.php');
// for map
$addr = array();
            if( ( osc_item_address() != '' ) && ( osc_item_address() != null ) ) { $addr[] = osc_item_address(); }
            if( ( osc_item_city()  != '' ) && ( osc_item_city()  != null ) ) { $addr[] = osc_item_city(); }
            if( ( osc_item_zip() != '' ) && ( osc_item_zip() != null ) ) { $addr[] = osc_item_zip(); }
            if( ( osc_item_region() != '' ) && ( osc_item_region() != null ) ) { $addr[] = osc_item_region(); }
            if( ( osc_item_country()  != '' ) && ( osc_item_country()  != null ) ) { $addr[] = osc_item_country(); }
            $address = implode(", ", $addr);
?>


Place this button code where you would like to place a link for the map


Code: [Select]
<a class="btn btn-default btn-xs" style="border:#4a80f5solid thin; background:#4a80f5; color:#fff" role="button" href="https://maps.google.it/maps?q=<?php echo $address?>" target="_blank"><i class="fa fa-map-marker"></i> See on map</a>

Kind regards
Title: Re: Important - Google is going to charge developers for using their map API
Post by: HORTENSIA on July 19, 2018, 06:50:43 pm
Ok but is a link not a map.
Title: Re: Important - Google is going to charge developers for using their map API
Post by: BritWeb on July 19, 2018, 07:43:25 pm
Ok but is a link not a map.

Yes, it's a link that opens the map in a new windows but place this iframe code where you want the map to show.

Code: [Select]
<iframe width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.it/maps?q=<?php echo $address?>&output=embed"></iframe>
Title: Re: Important - Google is going to charge developers for using their map API
Post by: HORTENSIA on July 19, 2018, 10:04:22 pm
it's ok it shows the map but not the one from the ad
it s shows mes the map of the globe on each ads.