-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
here geocoder url config parameter #4472
Conversation
checkStyle failing... |
What's the new URL? I think we should set at least to be a default. |
https://reverse.geocoder.api.here.com/6.2/reversegeocode.json I put it on the unit test. My api_key doesn't work with the old url. By the way I'm having problems trying to fix the unit tests, It has to be run with the Conext initialized because of the "concrete map type error". But we need a settings file for that and I think it's too much for such a small test. Any idea on this? |
sorry, https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json |
added default url for here
return url; | ||
private static String formatUrl(String url, String id, String key, String language) { | ||
if (url == null) { | ||
url = "https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix indentation here.
@@ -73,7 +73,7 @@ public void testBan() { | |||
@Ignore | |||
@Test | |||
public void testHere() { | |||
Geocoder geocoder = new HereGeocoder("", "", null, 0, new AddressFormat()); | |||
Geocoder geocoder = new HereGeocoder("https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json", "", "", null, 0, new AddressFormat()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
URL here can be removed.
removed url from here geocode test
intellij uses 2 spaces, this project uses 4.
intellij uses 2 spaces, this project uses 4.
@@ -73,7 +73,7 @@ public void testBan() { | |||
@Ignore | |||
@Test | |||
public void testHere() { | |||
Geocoder geocoder = new HereGeocoder("", "", null, 0, new AddressFormat()); | |||
Geocoder geocoder = new HereGeocoder("", "", "", null, 0, new AddressFormat()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right. Shouldn't the URL be null
?
Merged, thanks. |
Looks like it was hardcoded.
The here url has changed.