Search code examples
ionic-frameworkgeolocationionic-nativegoogle-geocoding-api

Ion-native Google map is not free, why it requires Api key?


I am using Ionic-native Geo-location for getting lat and lng but when i run the code i get to know that its for "development purpose only".

i have tried v3 or others without api key.

home.html

<div class="map-wrapper">
    <div id="map_center">
      <img src="../../assets/icon/marker.png" />
    </div>
    <div #map id="map"></div>
  </div>

I expected google maps without api key because i am using ionic native plugin


Solution

  • The fact that google maps requires a API key now is because Google changed the pricing plan for Google Maps. You are now required to create a cloud account and activate the Maps API. For more details see: Google Maps docs.

    This has nothing to do with the ionic-native plugin.