Skip to content

Commit

Permalink
Use community navitia server
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Delattre authored and xamanu committed Dec 5, 2017
1 parent f3ce5a2 commit 7b650b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion enabler/src/de/schildbach/pte/EsteliProvider.java
Expand Up @@ -24,6 +24,8 @@
*/
public class EsteliProvider extends AbstractNavitiaProvider {
private static String API_REGION = "ni-esteli";
private static HttpUrl API_BASE = HttpUrl.parse("http://navitia.mapanica.net/").newBuilder().addPathSegment(SERVER_VERSION).build();


public EsteliProvider(final HttpUrl apiBase, final String authorization) {
super(NetworkId.ESTELI, apiBase, authorization);
Expand All @@ -32,7 +34,7 @@ public EsteliProvider(final HttpUrl apiBase, final String authorization) {
}

public EsteliProvider(final String authorization) {
super(NetworkId.ESTELI, authorization);
super(NetworkId.ESTELI, API_BASE, authorization);

setTimeZone("America/Managua");
}
Expand Down
3 changes: 2 additions & 1 deletion enabler/src/de/schildbach/pte/ManaguaProvider.java
Expand Up @@ -24,6 +24,7 @@
*/
public class ManaguaProvider extends AbstractNavitiaProvider {
private static String API_REGION = "ni-managua";
private static HttpUrl API_BASE = HttpUrl.parse("http://navitia.mapanica.net/").newBuilder().addPathSegment(SERVER_VERSION).build();

public ManaguaProvider(final HttpUrl apiBase, final String authorization) {
super(NetworkId.MANAGUA, apiBase, authorization);
Expand All @@ -32,7 +33,7 @@ public ManaguaProvider(final HttpUrl apiBase, final String authorization) {
}

public ManaguaProvider(final String authorization) {
super(NetworkId.MANAGUA, authorization);
super(NetworkId.MANAGUA, API_BASE, authorization);

setTimeZone("America/Managua");
}
Expand Down

0 comments on commit 7b650b6

Please sign in to comment.