/[projects]/dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/OSRMHelper.java
ViewVC logotype

Diff of /dao/DaoAdresseVedligehold/src/main/java/dk/daoas/adressevedligehold/afstandandenrute/OSRMHelper.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2903 by torben, Wed Feb 3 18:45:33 2016 UTC revision 2914 by torben, Thu Feb 4 08:54:48 2016 UTC
# Line 19  public class OSRMHelper { Line 19  public class OSRMHelper {
19                    
20          Gson gson = new Gson();          Gson gson = new Gson();
21    
22          final int port = 5000;          final static int PORT = 5000;
23          final String base_url = "http://" + ServiceConfig.getInstance().osrmHost + ":" + port;          final String base_url = "http://" + ServiceConfig.getInstance().osrmHost + ":" + PORT;
24    
25    
26          public Address getNearestTableHttp(Address a1, Collection<Address> haystack) throws Exception {          public Address getNearestTableHttp(Address a1, Collection<Address> haystack) throws Exception {
# Line 42  public class OSRMHelper { Line 42  public class OSRMHelper {
42    
43                  try {                  try {
44    
45                          String txtResponse = HttpUtil.getContentString(sb.toString(), 750, "UTF-8");                          String txtResponse = HttpUtil.getContentString(sb.toString(), 1000, "UTF-8");
46    
47                          OSRMDistanceTable table = gson.fromJson(txtResponse, OSRMDistanceTable.class);                          OSRMDistanceTable table = gson.fromJson(txtResponse, OSRMDistanceTable.class);
48    

Legend:
Removed from v.2903  
changed lines
  Added in v.2914

  ViewVC Help
Powered by ViewVC 1.1.20