-
Notifications
You must be signed in to change notification settings - Fork 401
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
How to calculate the distances between each node? #23
Comments
Hi kyungeuuun, The distance between two locations/nodes are calculated using A* search on the road network. A map is needed for this calculation.
You may the Euclidean distance between two nodes as a starting point. |
Imagine we have one sensor on a northbound highway |
Hi @sshleifer , the road network distance is shortest distance the vehicle has to travel from the source to the destination under the constraint imposed by the network. If
is the shortest distance, it will be the case. |
Here's how I created my own distance matrix: https://github.com/ThomasAFink/osmnx_adjacency_matrix_for_graph_convolutional_networks |
Hello, Li.
I wonder how to calculate the distances between each node.
(According to README.md (Graph Construction), this part is being added, but it is not provided yet.)
I calculated some distances using Google map,
however, my results were different from yours.
For example, for the case of 773906 > 767471,
my result was 13.0km, and the value from your data was 10419.9m.
Could you please explain how to calculate node-to-node distance,
or provide the data for this process?
The text was updated successfully, but these errors were encountered: