I’m using til Google Address Geocoder from Palladian - it works fine on some addresses, but on others I get the following error:
Execute failed: ws.palladian.extraction.location.geocoder.GeocoderException: Error while parsing JSON result ({ “results” : [ { “address_components” : [ { “long_name” : “Brobjerg Parkvej”, “short_name” : “Brobjerg Parkvej”, “types” : [ “route” ] }, { “long_name” : “Egå”, “short_name” : “Egå”, “types” : [ “locality”, “political” ] }, { “long_name” : “Denmark”, “short_name” : “DK”, “types” : [ “country”, “political” ] }, { “long_name” : “8250”, “short_name” : “8250”, “types” : [ “postal_code” ] } ], “formatted_address” : “Brobjerg Parkvej, 8250 Egå, Denmark”, “geometry” : { “bounds” : { “northeast” : { “lat” : 56.2064974, “lng” : 10.2671539 }, “southwest” : { “lat” : 56.202914, “lng” : 10.2569818 } }, “location” : { “lat” : 56.204817, “lng” : 10.2615945 }, “location_type” : “GEOMETRIC_CENTER”, “viewport” : { “northeast” : { “lat” : 56.2064974, “lng” : 10.2671539 }, “southwest” : { “lat” : 56.202914, “lng” : 10.2569818 } } }, “place_id” : “ChIJ9bly6Iw-TEYRTu_aMUfdQGc”, “types” : [ “route” ] } ], “status” : “OK” }).
The address is valid, and it seems like the feedback from Google in the above error code is legit.
I’m searching the address Brobjerg Parkvej, 8250 Egå, Denmark
What am I missing?
I other cases I’m getting the following error - I’ll provide more info if this is needed
ERROR Google Address Geocoder 8:157 Execute failed: JSON array initial value should be a string or collection or array.