How to use google maps without api key

前端 未结 5 1540
失恋的感觉
失恋的感觉 2020-12-13 10:07

Hi i am using this code to use get-directions in google maps. but when i run this from other machines it is showing the error invalid api key. how to use this same map witho

相关标签:
5条回答
  • 2020-12-13 10:47

    Note : This answer is now out-of-date. You are now required to have an API key to use google maps. Read More

    you need to change your API from V2 to V3, Since Google Map Version 3 don't required API Key

    Check this out..

    write your script as

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
    
    0 讨论(0)
  • 2020-12-13 10:51

    Hey You can Use this insted

    <iframe width="100%" height="100%" class="absolute inset-0" frameborder="0" title="map" marginheight="0" marginwidth="0" scrolling="no" src="https://maps.google.com/maps?width=100%&amp;height=600&amp;hl=en&amp;q=%C4%B0ikaneir+(Mumma's%20Bakery)&amp;ie=UTF8&amp;t=&amp;z=14&amp;iwloc=B&amp;output=embed" style="filter: scale(100) contrast(1.2) opacity(0.4);"></iframe>
    
    0 讨论(0)
  • 2020-12-13 11:04

    You can still use free wıth iframe in google maps share button for example

    0 讨论(0)
  • 2020-12-13 11:05

    Now you must have API key. You can generate that in google developer console. Here is LINK to the explanation.

    0 讨论(0)
  • 2020-12-13 11:08

    source

    In June 2016 Google announced that they would stop supporting keyless usage, meaning any request that doesn’t include an API key or Client ID. This will go into effect on June 11 2018, and keyless access will no longer be supported

    0 讨论(0)
提交回复
热议问题