Skip to content

Commit

Permalink
change nominatim format for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Sep 4, 2023
1 parent a03ff10 commit d56518c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions converter.yml
Original file line number Diff line number Diff line change
@@ -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}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/converter.yml
Original file line number Diff line number Diff line change
@@ -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}
Expand Down

0 comments on commit d56518c

Please sign in to comment.