location geocode gives Google geocoding returned status code: but direct query url works

Created on 9 September 2015, almost 9 years ago
Updated 17 July 2018, almost 6 years ago

Problem/Motivation

location geocode gives Google geocoding returned status code: but direct query url works
APi key and gecoding enabled on location tab settings tab
log message:
Google geocoding returned status code: for the query url: https://maps.googleapis.com/maps/api/geocode/json?region=be&address=Kare...

Result when queryin gdirect url:

{
   "results" : [
      {
         "address_components" : [
            {
               "long_name" : "35",
               "short_name" : "35",
               "types" : [ "street_number" ]
            },
            {
               "long_name" : "Karel Lodewijk Ledeganckstraat",
               "short_name" : "Karel Lodewijk Ledeganckstraat",
               "types" : [ "route" ]
            },
            {
               "long_name" : "Gent",
               "short_name" : "Gent",
               "types" : [ "sublocality_level_1", "sublocality", "political" ]
            },
            {
               "long_name" : "Gent",
               "short_name" : "Gent",
               "types" : [ "locality", "political" ]
            },
            {
               "long_name" : "Oost-Vlaanderen",
               "short_name" : "OV",
               "types" : [ "administrative_area_level_2", "political" ]
            },
            {
               "long_name" : "Vlaanderen",
               "short_name" : "Vlaanderen",
               "types" : [ "administrative_area_level_1", "political" ]
            },
            {
               "long_name" : "België",
               "short_name" : "BE",
               "types" : [ "country", "political" ]
            },
            {
               "long_name" : "9000",
               "short_name" : "9000",
               "types" : [ "postal_code" ]
            }
         ],
         "formatted_address" : "Karel Lodewijk Ledeganckstraat 35, 9000 Gent, België",
         "geometry" : {
            "location" : {
               "lat" : 51.036375,
               "lng" : 3.724129
            },
            "location_type" : "ROOFTOP",
            "viewport" : {
               "northeast" : {
                  "lat" : 51.0377239802915,
                  "lng" : 3.725477980291502
               },
               "southwest" : {
                  "lat" : 51.0350260197085,
                  "lng" : 3.722780019708498
               }
            }
         },
         "place_id" : "ChIJuYqgqOJzw0cR1rPu-ZULSYY",
         "types" : [ "street_address" ]
      }
   ],
   "status" : "OK"
}

But no data saved in location field

Enabled Apis,

BigQuery API
Cloud Debugger API
Debuglet Controller API
Geocoding API
Google Cloud Logging API
Google Cloud SQL
Google Cloud Storage
Google Cloud Storage JSON API
Google Maps Geolocation API
Google Maps JavaScript API v3
Static Maps API
No restrictions on access of api key

Proposed resolution

Remaining tasks

User interface changes

none

API changes

none

Data model changes

none

🐛 Bug report
Status

Active

Version

3.7

Component

Code

Created by

🇧🇪Belgium ikeigenwijs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024