-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CoreMatrix returns null as durations #1855
Comments
Thanks for reporting this! The observed behavior might be related to #1785. Please note that the core matrix implementation is currently considered as experimental, which is the reason why it is not enabled in the public API (see also #1164). However, there are currently ongoing efforts towards finalizing the implementation and making core matrix production-ready, so stay tuned 📣 |
After some further investigation this issue doesn't seem to be related to #1785, as a query without the @mohammad-babaei What is the configuration setting for |
Hi @aoles {
"locations": [
[
51.444049483897004,
35.666960593546776
],
[
51.443619344276584,
35.68891637256898
],
[
51.41894048682505,
35.70543424794617
],
[
51.36860255214674,
35.690512280992365
]
],
"sources": [
0
],
"destinations": [
1,
2,
3
],
"metrics": [
"duration"
],
"options": {
"dynamic_speeds": true
}
} the result is this: {
"metadata": {
"attribution": "openrouteservice.org, OpenStreetMap contributors",
"service": "matrix",
"timestamp": 1727800180112,
"query": {
"locations": [
[
51.444049483897004,
35.666960593546776
],
[
51.443619344276584,
35.68891637256898
],
[
51.41894048682505,
35.70543424794617
],
[
51.36860255214674,
35.690512280992365
]
],
"profile": "driving-car",
"responseType": "json",
"sources": [
"0"
],
"destinations": [
"1",
"2",
"3"
],
"metrics": [
"duration"
],
"options": {
"dynamic_speeds": true
}
},
"engine": {
"version": "8.2.1",
"build_date": "2024-09-30T09:13:38Z",
"graph_date": null
}
},
"durations": [
[
null,
null,
862.7
]
],
"destinations": [
{
"location": [
51.443641,
35.688964
],
"snapped_distance": 5.67
},
{
"location": [
51.418948,
35.705367
],
"snapped_distance": 7.55
},
{
"location": [
51.368591,
35.690617
],
"snapped_distance": 11.7
}
],
"sources": [
{
"location": [
51.444039,
35.666848
],
"snapped_distance": 12.6
}
]
} After debugging i noticed that the prioQueue gets empty before some target nodes are visited; if it was because of disconnected subgraphs, i wonder why the request without CoreMatrix algo works fine |
Thanks for your feedback! The ORS team will look into the issue and get back to you soon. Cheers! |
Is there an existing issue for this?
Where did you encounter this issue?
self-hosted instance
Request URL
http://localhost:8080/ors/v2/matrix/driving-car/json
POST Request Body
Response
Response
Current behavior
in DijkstraManyToMany, In updateTarget function; the targetmap never gets filled because no node in targetSet is visited. Using algorithms like simple Dijkstra this problem does not happen and we have a response with meaningful response. i have tried a lot of locations and it never works the way it has to.
Expected behavior
have numbers as durations
Openrouteservice Version
8.2.1
Build date
No response
Graph date
No response
Forum Topic Link
No response
The text was updated successfully, but these errors were encountered: