3 |
import java.io.IOException; |
import java.io.IOException; |
4 |
import java.util.Collection; |
import java.util.Collection; |
5 |
import java.util.Iterator; |
import java.util.Iterator; |
6 |
|
import java.util.logging.Level; |
7 |
|
import java.util.logging.Logger; |
8 |
|
|
9 |
import com.google.gson.Gson; |
import com.google.gson.Gson; |
10 |
|
|
11 |
import dk.daoas.fulddaekning.Adresse; |
import dk.daoas.fulddaekning.Adresse; |
12 |
import dk.daoas.fulddaekning.HttpUtil; |
import dk.daoas.fulddaekning.HttpUtil; |
13 |
|
import dk.daoas.fulddaekning.LookupWorker; |
14 |
|
|
15 |
public class OSRMHelper { |
public class OSRMHelper { |
16 |
|
|
17 |
|
final static Logger logger = Logger.getLogger( OSRMHelper.class.toString() ); |
18 |
|
|
19 |
Gson gson = new Gson(); |
Gson gson = new Gson(); |
20 |
|
|
21 |
final String base_url = "http://10.30.2.61:5000"; |
final String base_url = "http://10.30.2.61:5000"; |
50 |
} |
} |
51 |
|
|
52 |
} catch (Exception e) { |
} catch (Exception e) { |
53 |
System.out.println( e.getMessage() ); |
logger.log(Level.SEVERE, "Lookup failed", e); |
54 |
System.exit(1); |
System.exit(1); |
55 |
} |
} |
56 |
|
|