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 |
|
|
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); |