Google Map Api Uncaught TypeError: Cannot read property '0' of null

前端 未结 2 551
星月不相逢
星月不相逢 2021-01-29 05:57

I am face the problem Uncaught TypeError: Cannot read property \'0\' of null on converting the address to latitude and longitude this the my code

The code is

<         


        
2条回答
  •  情书的邮戳
    2021-01-29 06:18

    if you do not have a business account, it could also give you this error which comes from this response of the server:

    {
      "error_message" : "You have exceeded your rate-limit for this API.",
      "results" : [],
      "status" : "OVER_QUERY_LIMIT"
    }
    

    Which means that either you load the api too many times a day/too concentrated or that you try to load many addresses.

    This particular response will also cause this error.

     Uncaught TypeError: Cannot read property 'geometry' of undefined
    

    Here you can find some tips that might help. https://developers.google.com/maps/documentation/business/articles/usage_limits

提交回复
热议问题