25 |
final String base_url = "http://" + host + ":" + port; |
final String base_url = "http://" + host + ":" + port; |
26 |
|
|
27 |
|
|
28 |
public Address getNearestTableHttp(Address a1, Collection<Address> haystack) { |
public Address getNearestTableHttp(Address a1, Collection<Address> haystack) throws Exception { |
29 |
|
|
30 |
|
|
31 |
|
|
65 |
System.out.println(txtResponse); |
System.out.println(txtResponse); |
66 |
|
|
67 |
|
|
68 |
System.exit(0); |
throw new Exception("Wrong number of results in matrix"); |
69 |
} |
} |
70 |
|
|
71 |
int bedsteTid = Integer.MAX_VALUE; |
int bedsteTid = Integer.MAX_VALUE; |
82 |
logger.log(Level.SEVERE, "Lookup failed", e); |
logger.log(Level.SEVERE, "Lookup failed", e); |
83 |
System.out.println( sb.toString() ); |
System.out.println( sb.toString() ); |
84 |
System.out.println( a1 ); |
System.out.println( a1 ); |
85 |
System.exit(1); |
throw e; //Re-throw |
86 |
} |
} |
87 |
|
|
88 |
//return gson.fromJson(txtResponse, OSRMResponse.class); |
//return gson.fromJson(txtResponse, OSRMResponse.class); |