Thank you for your response @amandus . I tried and searched all the suggestions you have given. But nothing is working for me. It works fine for “driving-car” profile but does not work for "cycling-regular’ profile. That’s the issue with me.
I have provided the app.config, log and my request as you have requested here.
{
"ors": {
"info": {
"base_url": "https://openrouteservice.org/",
"support_mail": "support@openrouteservice.org",
"author_tag": "openrouteservice",
"content_licence": "LGPL 3.0"
},
"services": {
"matrix": {
"enabled": true,
"maximum_routes": 250000,
"maximum_routes_flexible": 25,
"maximum_search_radius": 5000,
"maximum_visited_nodes": 10000000,
"allow_resolve_locations": true,
"attribution": "openrouteservice.org, OpenStreetMap contributors"
},
"isochrones": {
"enabled": true,
"maximum_range_distance": [
{
"profiles": "any",
"value": 50000
},
{
"profiles": "driving-car, driving-hgv",
"value": 100000
}
],
"maximum_range_time": [
{
"profiles": "any",
"value": 18000
},
{
"profiles": "driving-car, driving-hgv",
"value": 3600
}
],
"fastisochrones": {
"maximum_range_distance": [
{
"profiles": "any",
"value": 50000
},
{
"profiles": "driving-car, driving-hgv",
"value": 500000
}
],
"maximum_range_time": [
{
"profiles": "any",
"value": 18000
},
{
"profiles": "driving-car, driving-hgv",
"value": 10800
}
],
"profiles": {
"default_params": {
"enabled": false,
"threads": 12,
"weightings": "recommended",
"maxcellnodes": 5000
},
"profile-vehicles-hgv": {
"enabled": true,
"threads": 12,
"weightings": "recommended, shortest",
"maxcellnodes": 5000
}
}
},
"maximum_intervals": 10,
"maximum_locations": 2,
"allow_compute_area": true
},
"routing": {
"enabled": true,
"mode": "normal",
"routing_description": "This is a routing file from openrouteservice",
"routing_name": "openrouteservice routing",
"sources": [
"data/osm_file.pbf"
],
"init_threads": 1,
"attribution": "openrouteservice.org, OpenStreetMap contributors",
"elevation_preprocessed": false,
"profiles": {
"active": [
"car",
"bike-regular",
],
"default_params": {
"encoder_flags_size": 8,
"graphs_root_path": "data/graphs",
"elevation_provider": "multi",
"elevation_cache_path": "data/elevation_cache",
"elevation_cache_clear": false,
"instructions": true,
"maximum_distance": 100000,
"maximum_distance_dynamic_weights": 100000,
"maximum_distance_avoid_areas": 100000,
"maximum_waypoints": 50,
"maximum_snapping_radius": 400,
"maximum_avoid_polygon_area": 200000000,
"maximum_avoid_polygon_extent": 20000,
"maximum_distance_alternative_routes": 100000,
"maximum_alternative_routes": 3,
"maximum_distance_round_trip_routes": 100000,
"maximum_speed_lower_bound": 80,
"preparation": {
"min_network_size": 200,
"min_one_way_network_size": 200,
"methods": {
"lm": {
"enabled": true,
"threads": 1,
"weightings": "recommended,shortest",
"landmarks": 16
}
}
},
"execution": {
"methods": {
"lm": {
"disabling_allowed": true,
"active_landmarks": 8
}
}
}
},
"profile-car": {
"profiles": "driving-car",
"parameters": {
"encoder_flags_size": 8,
"encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
"maximum_distance": 100000,
"elevation": true,
"maximum_snapping_radius": 350,
"preparation": {
"min_network_size": 200,
"min_one_way_network_size": 200,
"methods": {
"ch": {
"enabled": true,
"threads": 1,
"weightings": "fastest"
},
"lm": {
"enabled": false,
"threads": 1,
"weightings": "fastest,shortest",
"landmarks": 16
},
"core": {
"enabled": true,
"threads": 1,
"weightings": "fastest,shortest",
"landmarks": 64,
"lmsets": "highways;allow_all"
}
}
},
"execution": {
"methods": {
"ch": {
"disabling_allowed": true
},
"lm": {
"disabling_allowed": true,
"active_landmarks": 6
},
"core": {
"disabling_allowed": true,
"active_landmarks": 6
}
}
},
"ext_storages": {
"WayCategory": {},
"HeavyVehicle": {},
"WaySurfaceType": {},
"RoadAccessRestrictions": {
"use_for_warnings": true
}
}
}
},
"profile-hgv": {
"profiles": "driving-hgv",
"parameters": {
"encoder_flags_size": 8,
"encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
"maximum_distance": 100000,
"elevation": true,
"preparation": {
"min_network_size": 200,
"min_one_way_network_size": 200,
"methods": {
"ch": {
"enabled": true,
"threads": 1,
"weightings": "recommended"
},
"core": {
"enabled": true,
"threads": 1,
"weightings": "recommended,shortest",
"landmarks": 64,
"lmsets": "highways;allow_all"
}
}
},
"execution": {
"methods": {
"ch": {
"disabling_allowed": true
},
"core": {
"disabling_allowed": true,
"active_landmarks": 6
}
}
},
"ext_storages": {
"WayCategory": {},
"HeavyVehicle": {
"restrictions": true
},
"WaySurfaceType": {}
}
}
},
"profile-bike-regular": {
"profiles": "cycling-regular",
"parameters": {
"encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-bike-mountain": {
"profiles": "cycling-mountain",
"parameters": {
"encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-bike-road": {
"profiles": "cycling-road",
"parameters": {
"encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-bike-electric": {
"profiles": "cycling-electric",
"parameters": {
"encoder_options": "consider_elevation=true|turn_costs=true|block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-walking": {
"profiles": "foot-walking",
"parameters": {
"encoder_options": "block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-hiking": {
"profiles": "foot-hiking",
"parameters": {
"encoder_options": "block_fords=false",
"elevation": true,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"HillIndex": {},
"TrailDifficulty": {}
}
}
},
"profile-wheelchair": {
"profiles": "wheelchair",
"parameters": {
"encoder_options": "block_fords=true",
"elevation": true,
"maximum_snapping_radius": 50,
"ext_storages": {
"WayCategory": {},
"WaySurfaceType": {},
"Wheelchair": {
"KerbsOnCrossings": "true"
},
"OsmId": {}
}
}
}
}
}
},
"logging": {
"enabled": true,
"level_file": "DEBUG_LOGGING.json",
"location": "/var/log/ors",
"stdout": true
},
"system_message": [
{
"active": false,
"text": "This message would be sent with every routing bike fastest request",
"condition": {
"request_service": "routing",
"request_profile": "cycling-regular,cycling-mountain,cycling-road,cycling-electric",
"request_preference": "fastest"
}
},
{
"active": false,
"text": "This message would be sent with every request for geojson response",
"condition": {
"api_format": "geojson"
}
},
{
"active": false,
"text": "This message would be sent with every request on API v1 from January 2020 until June 2050",
"condition": {
"api_version": 1,
"time_after": "2020-01-01T00:00:00Z",
"time_before": "2050-06-01T00:00:00Z"
}
},
{
"active": false,
"text": "This message would be sent with every request"
}
]
}
}
log file using
docker logs --tail 200 ors-app
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
21-Feb-2022 02:11:04.563 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.39
21-Feb-2022 02:11:04.565 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Mar 14 2019 11:24:26 UTC
21-Feb-2022 02:11:04.566 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.39.0
21-Feb-2022 02:11:04.566 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux
21-Feb-2022 02:11:04.566 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.10.16.3-microsoft-standard-WSL2
21-Feb-2022 02:11:04.567 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
21-Feb-2022 02:11:04.567 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /usr/local/openjdk-11
21-Feb-2022 02:11:04.567 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 11.0.13+8
21-Feb-2022 02:11:04.567 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
21-Feb-2022 02:11:04.567 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat
21-Feb-2022 02:11:04.568 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat
21-Feb-2022 02:11:04.570 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED
21-Feb-2022 02:11:04.570 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED
21-Feb-2022 02:11:04.570 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
21-Feb-2022 02:11:04.571 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties
21-Feb-2022 02:11:04.571 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
21-Feb-2022 02:11:04.571 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.awt.headless=true
21-Feb-2022 02:11:04.572 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:TargetSurvivorRatio=75
21-Feb-2022 02:11:04.572 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:SurvivorRatio=64
21-Feb-2022 02:11:04.573 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxTenuringThreshold=3
21-Feb-2022 02:11:04.573 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseG1GC
21-Feb-2022 02:11:04.573 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+ScavengeBeforeFullGC
21-Feb-2022 02:11:04.574 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:ParallelGCThreads=4
21-Feb-2022 02:11:04.574 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms6g
21-Feb-2022 02:11:04.574 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx6g
21-Feb-2022 02:11:04.575 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
21-Feb-2022 02:11:04.575 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
21-Feb-2022 02:11:04.575 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027
21-Feb-2022 02:11:04.575 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote
21-Feb-2022 02:11:04.576 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.port=9001
21-Feb-2022 02:11:04.576 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.rmi.port=9001
21-Feb-2022 02:11:04.576 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
21-Feb-2022 02:11:04.577 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcom.sun.management.jmxremote.ssl=false
21-Feb-2022 02:11:04.577 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.rmi.server.hostname=localhost
21-Feb-2022 02:11:04.578 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=
21-Feb-2022 02:11:04.578 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat
21-Feb-2022 02:11:04.579 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat
21-Feb-2022 02:11:04.579 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp
21-Feb-2022 02:11:04.580 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib]
21-Feb-2022 02:11:04.634 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
21-Feb-2022 02:11:04.652 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
21-Feb-2022 02:11:04.669 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]
21-Feb-2022 02:11:04.671 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
21-Feb-2022 02:11:04.672 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 650 ms
21-Feb-2022 02:11:04.742 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
21-Feb-2022 02:11:04.742 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.39
21-Feb-2022 02:11:04.794 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/ors.war]
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.3.5.RELEASE)
21 Feb 02:11:11 INFO [ors.Application] - Starting Application v6.6.3 on 4decc788a23b with PID 10 (/usr/local/tomcat/webapps/ors/WEB-INF/classes started by root in /ors-core)
21 Feb 02:11:11 DEBUG [ors.Application] - Running with Spring Boot v2.3.5.RELEASE, Spring v5.2.10.RELEASE
21 Feb 02:11:11 INFO [ors.Application] - No active profile set, falling back to default profiles: default
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
21 Feb 02:11:15 INFO [ors.Application] - Started Application in 4.648 seconds (JVM running for 12.362)
21-Feb-2022 02:11:15.214 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
<?xml version="1.0" ?><Configuration><Properties><Property name="filename">/var/log/ors/ors-logs.log</Property></Properties></Configuration>21 Feb 02:11:15 INFO [routing.RoutingProfileManager] - Total - 6 GB, Free - 5.75 GB, Max: 6 GB, Used - 258.27 MB
21 Feb 02:11:15 INFO [routing.RoutingProfileManager] -
21 Feb 02:11:15 INFO [routing.RoutingProfileManager] - ====> Initializing profiles from 'data/osm_file.pbf' (1 threads) ...
21 Feb 02:11:15 INFO [routing.RoutingProfileManager] -
21 Feb 02:11:15 INFO [routing.RoutingProfileManager] -
21-Feb-2022 02:11:15.309 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/ors.war] has finished in [10,509] ms
21-Feb-2022 02:11:15.311 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/manager]
21 Feb 02:11:15 INFO [routing.RoutingProfile] - [1] Profiles: 'driving-car', location: 'data/graphs/car'.
21-Feb-2022 02:11:15.374 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/manager] has finished in [63] ms
21-Feb-2022 02:11:15.374 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/examples]
21-Feb-2022 02:11:15.778 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/examples] has finished in [404] ms
21-Feb-2022 02:11:15.779 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/docs]
21-Feb-2022 02:11:15.812 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/docs] has finished in [33] ms
21-Feb-2022 02:11:15.816 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/ROOT]
21-Feb-2022 02:11:15.875 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/ROOT] has finished in [59] ms
21-Feb-2022 02:11:15.889 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/usr/local/tomcat/webapps/host-manager]
21-Feb-2022 02:11:15.935 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/usr/local/tomcat/webapps/host-manager] has finished in [45] ms
21-Feb-2022 02:11:15.964 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
21-Feb-2022 02:11:15.994 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]
21-Feb-2022 02:11:15.999 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 11326 ms
21 Feb 02:15:24 INFO [core.PrepareCore] - 0, updates:0, nodes: 1 396 923, shortcuts:0, dijkstras:5 710 120, t(dijk):4.2, t(period):0.0, t(lazy):0.0, t(neighbor):0.0, meanDegree:1, algo:21MB, totalMB:6144, usedMB:4293
21 Feb 02:17:22 INFO [core.PrepareCore] - 279 385, updates:2, nodes: 1 117 538, shortcuts:4 478, dijkstras:15 848 068, t(dijk):115.41, t(period):105.74, t(lazy):0.0, t(neighbor):9.72, meanDegree:1, algo:21MB, totalMB:6144, usedMB:4468
21 Feb 02:18:50 INFO [core.PrepareCore] - 558 770, updates:4, nodes: 838 153, shortcuts:12 992, dijkstras:23 247 033, t(dijk):198.28, t(period):186.5, t(lazy):0.0, t(neighbor):16.04, meanDegree:1, algo:21MB, totalMB:6144, usedMB:4603
21 Feb 02:20:32 INFO [core.PrepareCore] - 838 155, updates:6, nodes: 558 768, shortcuts:269 264, dijkstras:30 740 776, t(dijk):294.34, t(period):242.52, t(lazy):0.0, t(neighbor):51.37, meanDegree:3, algo:21MB, totalMB:6144, usedMB:995
21 Feb 02:21:46 INFO [core.PrepareCore] - 1 117 540, updates:8, nodes: 279 383, shortcuts:544 426, dijkstras:36 796 164, t(dijk):362.91, t(period):273.84, t(lazy):0.0, t(neighbor):84.43, meanDegree:3, algo:21MB, totalMB:6144, usedMB:1166
21 Feb 02:23:04 INFO [core.PrepareCore] - took:469, new shortcuts: 882 100, prepare|fastest|car-ors, dijkstras:43862628, t(dijk):436.2, t(period):279.67, t(lazy):7.96, t(neighbor):136.89, meanDegree:3, initSize:1396923, periodic:10, lazy:10, neighbor:90, totalMB:6144, usedMB:1322
21 Feb 02:23:13 INFO [core.PrepareCore] - 0, updates:0, nodes: 1 396 923, shortcuts:0, dijkstras:5 710 120, t(dijk):4.07, t(period):0.0, t(lazy):0.0, t(neighbor):0.0, meanDegree:1, algo:21MB, totalMB:6144, usedMB:1442
21 Feb 02:24:36 INFO [core.PrepareCore] - 279 385, updates:2, nodes: 1 117 538, shortcuts:2 354, dijkstras:15 860 177, t(dijk):82.22, t(period):76.67, t(lazy):0.0, t(neighbor):6.06, meanDegree:1, algo:21MB, totalMB:6144, usedMB:1612
21 Feb 02:25:47 INFO [core.PrepareCore] - 558 770, updates:4, nodes: 838 153, shortcuts:32 581, dijkstras:23 681 285, t(dijk):148.29, t(period):141.07, t(lazy):0.0, t(neighbor):11.89, meanDegree:2, algo:21MB, totalMB:6144, usedMB:1754
21 Feb 02:27:08 INFO [core.PrepareCore] - 838 155, updates:6, nodes: 558 768, shortcuts:296 328, dijkstras:31 738 965, t(dijk):222.82, t(period):189.47, t(lazy):0.0, t(neighbor):37.2, meanDegree:2, algo:21MB, totalMB:6144, usedMB:1954
21 Feb 02:28:26 INFO [core.PrepareCore] - 1 117 540, updates:8, nodes: 279 383, shortcuts:626 820, dijkstras:39 478 766, t(dijk):294.35, t(period):222.56, t(lazy):0.0, t(neighbor):73.32, meanDegree:3, algo:21MB, totalMB:6144, usedMB:2143
21 Feb 02:31:33 INFO [core.PrepareCore] - took:508, new shortcuts: 1 171 068, prepare|shortest|car-ors, dijkstras:60415170, t(dijk):471.83, t(period):231.07, t(lazy):17.8, t(neighbor):217.34, meanDegree:6, initSize:1396923, periodic:10, lazy:10, neighbor:90, totalMB:6144, usedMB:2374
21 Feb 02:35:45 INFO [routing.RoutingProfile] - [1] FlagEncoders: 1, bits used [UNKNOWN]/64.
21 Feb 02:35:45 INFO [routing.RoutingProfile] - [1] Capacity: [UNKNOWN]. (edges - 1817001, nodes - 1396923)
21 Feb 02:35:45 INFO [routing.RoutingProfile] - [1] Total time: 1470.576s.
21 Feb 02:35:45 INFO [routing.RoutingProfile] - [1] Finished at: 2022-02-21 02:35:45.
21 Feb 02:35:45 INFO [routing.RoutingProfile] -
21 Feb 02:35:45 INFO [routing.RoutingProfile] - [2] Profiles: 'cycling-regular', location: 'data/graphs/bike-regular'.
21 Feb 02:40:03 INFO [routing.RoutingProfile] - [2] FlagEncoders: 1, bits used [UNKNOWN]/64.
21 Feb 02:40:03 INFO [routing.RoutingProfile] - [2] Capacity: [UNKNOWN]. (edges - 2344180, nodes - 1742853)
21 Feb 02:40:03 INFO [routing.RoutingProfile] - [2] Total time: 257.249s.
21 Feb 02:40:03 INFO [routing.RoutingProfile] - [2] Finished at: 2022-02-21 02:40:03.
21 Feb 02:40:03 INFO [routing.RoutingProfile] -
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - Total time: 1727.934s.
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - ========================================================================
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - ====> Recycling garbage...
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - Before: Total - 6 GB, Free - 3.70 GB, Max: 6 GB, Used - 2.30 GB
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - After: Total - 6 GB, Free - 4.33 GB, Max: 6 GB, Used - 1.67 GB
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - ========================================================================
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - ====> Memory usage by profiles:
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - [1] 353.03 MB (20.6%)
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - [2] 219.03 MB (12.8%)
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - Total: 572.06 MB (33.4%)
21 Feb 02:40:03 INFO [routing.RoutingProfileManager] - ========================================================================
21 Feb 09:15:02 INFO [util.SystemMessage] - SystemMessage loaded 0 messages.
And here is the actual request I sent.
import requests
body = {"locations":
[
[-73.99392888,40.76727216],[-74.00666661,40.71911552],[-74.00016545,40.71117416],[-74.00674436,40.73172428],[-74.00297088,40.72710258],[-74.0091059,40.71625008],[-73.98085795,40.7208736],[-73.997249007225,40.722103786686],[-74.00910627,40.71473993],[-73.99810231,40.72917025],[-73.97032517,40.75323098],[-73.97604882,40.7489006],[-73.99456405,40.73971301],[-73.9845272898674,40.7606832709659],[-73.97738662,40.7381765],[-74.01043382,40.70905623],[-74.00681753,40.74334935],[-73.99994661,40.73781509],[-73.971878855,40.7546011026],[-73.99379025,40.72743423],[-73.98713956,40.7284186],[-73.98672378,40.73047309],[-74.00859207,40.7361967],[-74.00483091,40.73535398],[-74.00771779,40.72185379],[-74.0090009,40.71870987],[-73.99480012,40.72317958]
]
}
headers = {
'Accept': 'application/json, application/geo+json, application/gpx+xml, img/png; charset=utf-8',
'Content-Type': 'application/json; charset=utf-8'
}
call = requests.post('http://localhost:8080/ors/v2/matrix/cycling-regular', json=body, headers=headers)
print(call.status_code, call.reason)
print(call.text)
Here I get the error message when I add all my coordinates.
Body is limited to 32000 characters; you entered 41401.
Therefore I cant attach all my coordinates.
The above request works fine(since it has a smaller number of coordinates). But when I put all the coordinates I get the error.
500
{"error":{"code":6099,"message":"Unable to compute a distance\/duration matrix."},"info":{"engine":{"version":"6.6.3","build_date":"2022-02-20T06:51:08Z"},"timestamp":1645437817310}}
I hope to hear from you as soon as possible.
Thank you in advance.