Import: Geocoding not working ("Unable to get location data")

New home Forums Basic Version Troubleshooting Import: Geocoding not working ("Unable to get location data")

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20886
    FlowtographyBerlin
    Member

    Hi,

    I have the WPGMaps with Pro Add-on, and I’m trying to import markers from a CSV file.

    The markers are imported ok, but the Geocoding does not work, despite the address being valid, and the API key working:

    The message after import is “Unable to get location data for” and then it displays a link that will lead me to what looks like the correct Google API output.

    The address I’m testing is:
    Schoenhauser Allee 132, 10437 Berlin, Deutschland

    And the output that it provides is this:

    {
       "results" : [
          {
             "address_components" : [
                {
                   "long_name" : "132",
                   "short_name" : "132",
                   "types" : [ "street_number" ]
                },
                {
                   "long_name" : "Schönhauser Allee",
                   "short_name" : "Schönhauser Allee",
                   "types" : [ "route" ]
                },
                {
                   "long_name" : "Prenzlauer Berg",
                   "short_name" : "Prenzlauer Berg",
                   "types" : [ "political", "sublocality", "sublocality_level_2" ]
                },
                {
                   "long_name" : "Bezirk Pankow",
                   "short_name" : "Bezirk Pankow",
                   "types" : [ "political", "sublocality", "sublocality_level_1" ]
                },
                {
                   "long_name" : "Berlin",
                   "short_name" : "Berlin",
                   "types" : [ "locality", "political" ]
                },
                {
                   "long_name" : "Berlin",
                   "short_name" : "Berlin",
                   "types" : [ "administrative_area_level_1", "political" ]
                },
                {
                   "long_name" : "Deutschland",
                   "short_name" : "DE",
                   "types" : [ "country", "political" ]
                },
                {
                   "long_name" : "10437",
                   "short_name" : "10437",
                   "types" : [ "postal_code" ]
                }
             ],
             "formatted_address" : "Schönhauser Allee 132, 10437 Berlin, Deutschland",
             "geometry" : {
                "location" : {
                   "lat" : 52.5449205,
                   "lng" : 13.4118705
                },
                "location_type" : "ROOFTOP",
                "viewport" : {
                   "northeast" : {
                      "lat" : 52.5462694802915,
                      "lng" : 13.4132194802915
                   },
                   "southwest" : {
                      "lat" : 52.5435715197085,
                      "lng" : 13.4105215197085
                   }
                }
             },
             "place_id" : "ChIJ78xSnQFSqEcRCmDEdJgnbo4",
             "types" : [ "street_address" ]
          }
       ],
       "status" : "OK"
    }

    What can I do to get it working? Thanks!
    Florian

    #20887
    Nick Duncan
    Keymaster

    Hi Florian
    Please can you email me the CSV file to nick [@] wpgmaps dot com so I can debug on my side.

    #20890
    FlowtographyBerlin
    Member

    Thanks, Nick! File has been sent.

    #23063
    mestigoth
    Member

    Did you find any solution to this?

    I have more or less the same problem, the only difference seems to be that no markers appear after import.

    I used the example CSV file to enter data (with approved and retina fields added).

    If I click the links and enter the lat and lng from the linked data into the CSV file and import it again, it works as it should.

    Roger

    #23064
    FlowtographyBerlin
    Member

    In my case, it was simply because the Authentication code wasn’t clean, I think there was a space in front of it or something. Stupid, but it wasn’t recognizable for me. So check for that before you do anything else.

    Good luck!

    #23065
    mestigoth
    Member

    Ah, of course it was a space at the end of the API key… Can´t belive I still forget to check these kind of things before checking other things or posting! :-/

    Thank you!

    R

    #23067
    FlowtographyBerlin
    Member

    I can believe it. 🙂 I couldn’t see the space character and was sure everything was cool. You have to run into it once before you check for this.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Import: Geocoding not working ("Unable to get location data")’ is closed to new replies.