Android Question Get Error message custom daily request quota Google Map API ?

Ajws

Member
Licensed User
Hi, I have create a project to get address on Google Map, but now i cannot get the address again ? and get error

B4X:
You have exceeded your daily request quota for this API. If you did not set a custom daily request quota, verify your project has an active billing account: http://g.co/dev/maps-no-account

I don't understand that message. Anybody can help me to solved this problem ? should i pay for use the google map API ?
can i use the free one ? and how much daily requeest quota for free ?
Thanks for your explain.


B4X:
    Dim API_KEY As String = "xxxxxxxxxxxxxxxxxxxxxxxxxx"
    Dim res As String
    Dim GetAddressJob As HttpJob
    GetAddressJob.Initialize("GetAddress", Me)
    GetAddressJob.Download2("https://maps.googleapis.com/maps/api/geocode/json", Array As String("latlng", lat & "," & lon,"key",API_KEY))
    Wait For (GetAddressJob) JobDone(GetAddressJob As HttpJob)
    If GetAddressJob.Success Then
        Dim jp As JSONParser
        jp.Initialize(GetAddressJob.GetString)
        Dim m As Map = jp.NextObject
        If m.Get("status") = "OK" Then
            Dim results As List = m.Get("results")
            If results.Size > 0 Then
                Dim first As Map = results.Get(0)
                res = first.Get("formatted_address")
                Log(res)
                Module1.LokasiFLP=res
            
                'res contain address string
            End If
        End If
    End If
    GetAddressJob.Release
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top