diff --git a/README.md b/README.md index d325a10..8e68c63 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ https://graphhopper.com/api/1/search?q=berlin&key=[YOUR_KEY] This query will be translated to the following queries: ``` -https://nominatim.openstreetmap.org/search/berlin?format=json&addressdetails=1 +https://nominatim.openstreetmap.org/search?q=berlin&format=json&addressdetails=1 https://api.opencagedata.com/geocode/v1/json?q=berlin https://services.gisgraphy.com/geocoding/search?address=berlin&format=json https://api.nettoolkit.com/v1/geo/geocodes?address=berlin @@ -85,7 +85,7 @@ The geocoding converter supports the following additional Nominatim parameters, A sample Nominatim Response for ``` -https://nominatim.openstreetmap.org/search/Unter%20den%20Linden%201%20Berlin?format=json&addressdetails=1&limit=1&polygon_svg=1 +https://nominatim.openstreetmap.org/search?q=Unter%20den%20Linden%201%20Berlin&format=json&addressdetails=1&limit=1&polygon_svg=1 ``` looks like this diff --git a/converter.yml b/converter.yml index 3a5e5c2..00c7aac 100644 --- a/converter.yml +++ b/converter.yml @@ -1,5 +1,5 @@ -nominatimURL: https://nominatim.openstreetmap.org/search/ -nominatimReverseURL: https://nominatim.openstreetmap.org/reverse/ +nominatimURL: https://nominatim.openstreetmap.org/search +nominatimReverseURL: https://nominatim.openstreetmap.org/reverse nominatim: true nominatimEmail: ${NOM_EMAIL} diff --git a/src/main/java/com/graphhopper/converter/ConverterConfiguration.java b/src/main/java/com/graphhopper/converter/ConverterConfiguration.java index 77935a4..eff2949 100644 --- a/src/main/java/com/graphhopper/converter/ConverterConfiguration.java +++ b/src/main/java/com/graphhopper/converter/ConverterConfiguration.java @@ -17,9 +17,9 @@ public class ConverterConfiguration extends Configuration { @NotEmpty - private String nominatimURL = "https://nominatim.openstreetmap.org/search/"; + private String nominatimURL = "https://nominatim.openstreetmap.org/search"; @NotEmpty - private String nominatimReverseURL = "https://nominatim.openstreetmap.org/reverse/"; + private String nominatimReverseURL = "https://nominatim.openstreetmap.org/reverse"; private String nominatimEmail = ""; private String openCageDataURL = "https://api.opencagedata.com/geocode/v1/json"; diff --git a/src/test/resources/converter.yml b/src/test/resources/converter.yml index db495b3..35ed6cf 100644 --- a/src/test/resources/converter.yml +++ b/src/test/resources/converter.yml @@ -1,4 +1,4 @@ -nominatimURL: https://nominatim.openstreetmap.org/search/ +nominatimURL: https://nominatim.openstreetmap.org/search openCageDataURL: https://api.opencagedata.com/geocode/v1/json openCageDataKey: ${OCD_KEY}