Osclass forums
Support forums => General help => Topic started 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
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
-
Bing maps it is then.. :(
Wait.. the Google Maps plugin from Osclass doesn't have an API key inside?
-
That plugin did not work after inserting google api code anyway.
-
Developpers have 200 USD of free monthly usage, they calculate that 98% of developpers will still use google map for free
-
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.
-
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? :)
-
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.
-
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. :-\
-
How about embedding?
<?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);
?>
<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
-
Good idea.P206ab :D
-
I've updated the code above, it works for me. ;)
-
I've updated the code above, it works for me. ;)
Brilliant!
Thank you, p206ab
-
In Which File, i am insert this code?
-
In Which File, i am insert this code?
Item.php of your theme, the part where map is displayed.
-
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
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
<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
-
Ok but is a link not a map.
-
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.
<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>
-
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.