New home › Forums › Basic Version › Troubleshooting › Import: Geocoding not working ("Unable to get location data")
- This topic has 6 replies, 3 voices, and was last updated 6 years, 8 months ago by FlowtographyBerlin.
-
AuthorPosts
-
September 14, 2016 at 6:23 pm #20886FlowtographyBerlinMember
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, DeutschlandAnd 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!
FlorianSeptember 14, 2016 at 6:38 pm #20887Nick DuncanKeymasterHi Florian
Please can you email me the CSV file to nick [@] wpgmaps dot com so I can debug on my side.September 14, 2016 at 7:34 pm #20890FlowtographyBerlinMemberThanks, Nick! File has been sent.
January 2, 2017 at 4:55 pm #23063mestigothMemberDid 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
January 2, 2017 at 5:55 pm #23064FlowtographyBerlinMemberIn 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!
January 2, 2017 at 6:11 pm #23065mestigothMemberAh, 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
January 2, 2017 at 8:27 pm #23067FlowtographyBerlinMemberI 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.
-
AuthorPosts
- The topic ‘Import: Geocoding not working ("Unable to get location data")’ is closed to new replies.