'Neo4J using apoc.spatial.geocodeOnce with special characters like -, / or ( )
I am using Neo4J version 4.4.5 Community with a docker-compose file. I included the apoc plugin, so I am able to use "apoc.spatial.geocodeOnce()". I am using OSM as provider.
The problem now is that I have predefined address that can contain special characters like -, / or ( )
When I am using
CALL apoc.spatial.geocodeOnce("Eisenstadt (Stadt)")
I get no results but when I am entering the same in the Open Street Map website, I get a result which you can see in the link below.
https://www.openstreetmap.org/search?query=Eisenstadt%20(Stadt)%20#map=13/47.8455/16.5249
So I am wondering why I don´t get a result back from apoc.spatial.geocodeOnce but the I get a result at the website.
Thanks in advance.
Solution 1:[1]
try:
CALL apoc.spatial.geocodeOnce("Eisenstadt (Stadt)")
YIELD location//,data
RETURN location.latitude, location.longitude,location.description
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | micro5 |
