Hello.
I’m trying to compute a pairwise distance matrix. Apparently I’ve exceeded the total of routes are allowed by configuration. My API call consists of 597 locations, which means 356409 routes computation. I’ve made the corresponding changes in the config file (or so I think).
Config (app.config):
{
"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_locations":4000000,
"maximum_visited_nodes":100000,
"allow_resolve_locations":true,
"attribution":"openrouteservice.org, OpenStreetMap contributors"
},
"isochrones":{
"enabled":true,
"maximum_range_distance":[
{
"profiles":"any",
"value":50000
},
{
"profiles":"driving-car, driving-hgv, cycling-regular, foot-walking",
"value":100000
}
],
"maximum_range_time":[
{
"profiles":"any",
"value":18000
},
{
"profiles":"driving-car, driving-hgv, cycling-regular, foot-walking",
"value":3600
}
],
"maximum_intervals":10,
"maximum_locations":2,
"allow_compute_area":true,
"attribution":"openrouteservice.org, OpenStreetMap contributors"
},
"routing":{
"enabled":true,
"mode":"normal",
"sources":[
"/ors-core/data/north-america-latest.osm.pbf"
],
"init_threads":1,
"attribution":"openrouteservice.org, OpenStreetMap contributors",
"distance_approximation":true,
"profiles":{
"active":[
"vehicles-car"
],
"default_params": {
"encoder_flags_size": 8,
"graphs_root_path": "data/graphs",
"elevation_provider": "multi",
"elevation_cache_path": "data/elevation_cache",
"elevation_clear_cache": true,
"instructions": true,
"maximum_distance": 100000,
"maximum_segment_distance_with_dynamic_weights": 100000,
"maximum_waypoints": 50
},
"profile-vehicles-car":{
"profiles":"driving-car",
"parameters":{
"encoder_options":"consider_elevation=true|turn_costs=true|block_fords=false|use_acceleration=true",
"elevation":true,
"preparation":{
"min_network_size":200,
"min_one_way_network_size":200,
"methods":{
"ch":{
"enabled":true,
"threads":8,
"weightings":"fastest"
},
"lm":{
"enabled":true,
"threads":8,
"weightings":"fastest,shortest",
"landmarks":24
}
}
},
Erro message:
openrouteservice.exceptions.ApiError: 400 ({'info': {'timestamp': 1559749512432, 'engine': {'build_date': '2019-06-01T20:46:11Z', 'version': '5.0.1'}}, 'error': {'code': 6004, 'message': 'Request parameters exceed the server configuration limits. Only a total of 356409 routes are allowed.'}})
What could I be doind wrong?
Thank you in advance.