zoukankan      html  css  js  c++  java
  • openstreetmap算路服务搭建

    1. git地址:https://github.com/graphhopper/graphhopper

    2. 最新的 web service jar包:https://graphhopper.com/public/releases/graphhopper-web-0.11.0.jar

    3. bin文件下载:https://graphhopper.com/public/releases/graphhopper-web-0.10.3-bin.zip

    替换里面的jar包即可

    4. 下载最新的中国数据:https://download.geofabrik.de/asia/china-latest.osm.pbf

    5. 执行命令:java -jar graphhopper-web-0.10.0-with-dep.jar jetty.resourcebase=webapp config=config-example.properties datareader.file=china-latest.osm.pbf

     1 D:projectgraphhopper-web-0.10.0-bin>java -jar graphhopper-web-0.10.0-with-dep.jar jetty.resourcebase=webapp config=config-example.properties datareader.file=china-latest.osm.pbf
     2 2018-12-14 10:22:48,076 [main] INFO com.graphhopper.http.CmdArgsModule - jsonp disabled
     3 2018-12-14 10:22:48,392 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - version 0.10.0|2018-03-02T07:40:33Z (5,14,4,3,3,2)
     4 2018-12-14 10:22:48,397 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - graph CH|car|RAM_STORE|2D|NoExt|,,,,, details:edges:0(0MB), nodes:0(0MB), name:(0MB), geo:0(0MB), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308, CHGraph|fastest|car, shortcuts:0, nodesCH:(0MB)
     5 2018-12-14 10:22:48,564 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - start creating graph from china-latest.osm.pbf
     6 2018-12-14 10:22:48,564 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - using CH|car|RAM_STORE|2D|NoExt|,,,,, memory:totalMB:121, usedMB:31
     7 2018-12-14 10:23:26,914 [main] INFO com.graphhopper.reader.osm.OSMReader - creating graph. Found nodes (pillar+tower):25?049?243, totalMB:1043, usedMB:534
     8 2018-12-14 10:23:57,924 [main] INFO com.graphhopper.reader.osm.OSMReader - 57?652?468, now parsing ways
     9 2018-12-14 10:24:33,144 [main] INFO com.graphhopper.reader.osm.OSMReader - 61?868?452, now parsing relations
    10 2018-12-14 10:24:33,182 [main] INFO com.graphhopper.reader.osm.OSMReader - finished way processing. nodes: 3439755, osmIdMap.size:25058309, osmIdMap:295MB, nodeFlagsMap.size:9066, relFlagsMap.size:0, zeroCounter:9185 totalMB:1501, usedMB:1151
    11 2018-12-14 10:24:33,184 [main] INFO com.graphhopper.reader.osm.OSMReader - time pass1:38s, pass2:66s, total:104s
    12 2018-12-14 10:24:33,188 [main] INFO com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - start finding subnetworks (min:200, min one way:200) totalMB:1501, usedMB:1151
    13 2018-12-14 10:24:35,209 [main] INFO com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - car findComponents time:2.0202818, size:60663
    14 2018-12-14 10:24:36,493 [main] INFO com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - 152618 subnetworks found for car, totalMB:1510, usedMB:1028
    15 2018-12-14 10:24:36,762 [main] INFO com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - optimize to remove subnetworks (152618), unvisited-dead-end-nodes (139894), maxEdges/node (14)
    16 2018-12-14 10:24:39,301 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - edges: 4524635, nodes 3287154, there were 152618 subnetworks. removed them => 152601 less nodes
    17 2018-12-14 10:24:53,874 [main] INFO com.graphhopper.storage.index.LocationIndexTree - location index created in 14.569756s, size:10?580?682, leafs:6?012?820, precision:300, depth:6, checksum:3287154, entries:[64, 64, 64, 64, 4, 4], entriesPerLeaf:1.7596872
    18 2018-12-14 10:24:53,913 [main] INFO com.graphhopper.routing.ch.CHAlgoFactoryDecorator - 1/1 calling CH prepare.doWork for fastest|car ... (totalMB:1788, usedMB:1339)
    19 2018-12-14 10:25:01,249 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 0, updates:0, nodes: 3?287?154, shortcuts:0, dijkstras:13?590?960, t(dijk):2.54, t(period):0.0, t(lazy):0.0, t(neighbor):0.0, meanDegree:1, algo:50MB, totalMB:1560, usedMB:758
    20 2018-12-14 10:25:03,928 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 657?420, updates:0, nodes: 2?629?734, shortcuts:109?959, dijkstras:14?087?016, t(dijk):3.96, t(period):0.0, t(lazy):0.0, t(neighbor):1.7, meanDegree:1, algo:50MB, totalMB:1560, usedMB:801
    21 2018-12-14 10:25:41,682 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 1?314?840, updates:1, nodes: 1?972?314, shortcuts:769?628, dijkstras:27?485?747, t(dijk):33.93, t(period):28.18, t(lazy):0.0, t(neighbor):5.88, meanDegree:2, algo:50MB, totalMB:1560, usedMB:926
    22 2018-12-14 10:26:27,185 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 1?972?260, updates:2, nodes: 1?314?894, shortcuts:1?444?067, dijkstras:39?079?093, t(dijk):71.23, t(period):57.24, t(lazy):0.0, t(neighbor):13.61, meanDegree:1, algo:50MB, totalMB:1560, usedMB:1164
    23 2018-12-14 10:27:35,290 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 2?629?680, updates:3, nodes: 657?474, shortcuts:2?663?953, dijkstras:51?876?762, t(dijk):129.35, t(period):88.39, t(lazy):0.0, t(neighbor):34.15, meanDegree:2, algo:50MB, totalMB:1560, usedMB:1143
    24 2018-12-14 10:30:12,465 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - 3?287?100, updates:4, nodes: 109?290, shortcuts:3?895?471, dijkstras:71?666?006, t(dijk):272.75, t(period):126.16, t(lazy):33.51, t(neighbor):90.11, meanDegree:4, algo:50MB, totalMB:1457, usedMB:859
    25 2018-12-14 10:36:20,041 [fastest_car] INFO com.graphhopper.routing.ch.PrepareContractionHierarchies - took:686, new shortcuts: 4?569?948, prepare|fastest, dijkstras:95885712, t(dijk):629.08, t(period):153.64, t(lazy):115.29, t(neighbor):298.32, meanDegree:1, initSize:3287154, periodic:20, lazy:10, neighbor:20, totalMB:1630, usedMB:868
    26 2018-12-14 10:36:20,041 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - flushing graph CH|car|RAM_STORE|2D|NoExt|5,14,4,3,3, details:edges:4?524?635(139MB), nodes:3?287?154(38MB), name:(4MB), geo:40?577?306(155MB), bounds:73.24670735552998,135.42199865926798,15.783944892524442,53.94998853541885, CHGraph|fastest|car, shortcuts:4?569?948, nodesCH:(26MB), totalMB:1630, usedMB:872)
    27 2018-12-14 10:36:26,048 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - flushed graph totalMB:1486, usedMB:799)
    28 2018-12-14 10:36:26,049 [main] INFO com.graphhopper.http.GraphHopperModule - loaded graph at:china-latest.osm-gh, data_reader_file:china-latest.osm.pbf, flag_encoders:car, edges:4?524?635(139MB), nodes:3?287?154(38MB), name:(4MB), geo:40?577?306(155MB), bounds:73.24670735552998,135.42199865926798,15.783944892524442,53.94998853541885, CHGraph|fastest|car, shortcuts:4?569?948, nodesCH:(26MB)
    29 2018-12-14 10:36:29,804 [main] INFO com.graphhopper.http.GHServer - Started server at HTTP :8989
  • 相关阅读:
    执行动态sql返回参数
    转: css box-sizing的用法
    使用mocMvc书写测试用例
    sprin-security之二(如何进行连接数据库)
    spring-security学习之(一)出入安全框架
    It's likely that neither a Result Type nor a Result Map was specified
    How To Install Java with Apt-Get on Ubuntu 16.04
    Kafka入门经典教程
    深入理解 Python 异步编程(上)
    ZooKeeper管理分布式环境中的数据
  • 原文地址:https://www.cnblogs.com/jobgeo/p/10118129.html
Copyright © 2011-2022 走看看