1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google maps Javascript API

Discussion in 'Other Languages' started by therealrio, Jun 3, 2015.

Tags:
  1. therealrio

    therealrio Registered Member

    Joined:
    Apr 24, 2015
    Messages:
    82
    Likes Received:
    6
    Home Page:
    It s a bit annoyig with Google luring in people with the free offers and services, then once they have people becomign dependent on them slamming them with heavy costs.

    Like with Google Maps API, they will charge $4 per 1000 over the first 25K requests per day. So if you app or site is heavily dependent on the API it can cause problems.

    I want to use Javascript API to get coordinates of a mobile user. Now say the app get 50K active users. They all use the app eveyrday and this API is used. Thats an extra 25K requests that will have to be paid for thats $4 x 25 ($100 ouch!).

    What I want to know is is there a way to show a google map on your website for free without limits without using the API, maybe say an iframe and actually just loading google maps home page and somehow setting the default location??
     
  2. MrBlue

    MrBlue Senior Member

    Joined:
    Dec 18, 2009
    Messages:
    969
    Likes Received:
    678
    Occupation:
    Web/Bot Developer
    Of course there is. Use another service or method to get the lat/long then include that data in the Gmap iframe parameters.

     
  3. therealrio

    therealrio Registered Member

    Joined:
    Apr 24, 2015
    Messages:
    82
    Likes Received:
    6
    Home Page:
    i just found that the Google maps embed API is free and has no limits but its not like the javascript API. i cant use it to get the location coords (i think).

    So what other free service is there that can get the users mobile phone location using location services
     
  4. opahopa

    opahopa Junior Member

    Joined:
    Sep 23, 2012
    Messages:
    163
    Likes Received:
    10
    maybe this one ? https://tech.yandex.com/maps/
    ah..sorry. Its limited to 25k requests per day too..
    seems there is no way..
     
  5. Des_cartes

    Des_cartes Junior Member

    Joined:
    Jan 19, 2012
    Messages:
    160
    Likes Received:
    64
    Is this a web app or a mobile app?

    If it's a mobile app you should have access to the user location and you can create a map with the embed API, if it's a web app you can query a geoip service to get an aproximate location and again use the embed API.
     
  6. Idanushka

    Idanushka Registered Member

    Joined:
    Jan 6, 2016
    Messages:
    54
    Likes Received:
    0
    Get the user location and put it manually