Skip to content
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

Applicability to World Coordinates #45

Open
sindizzy opened this issue Aug 1, 2019 · 2 comments
Open

Applicability to World Coordinates #45

sindizzy opened this issue Aug 1, 2019 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@sindizzy
Copy link

sindizzy commented Aug 1, 2019

I am looking to use this library for a GIS project. In this case I have a a list of cities with x,y coordinates. I also have a list of connections between two cities. Each connection has a weight based on the geodesic distance between the two points. Looking to get shortest path between two given cities with alternate routings as well.

First, is this type of problem possible with the library and if so is there an example I could use as a template? Second, do the algorithms have a setting for the max number of connections used in a possible solution? Say for example, a max of 3 connections are allowed in a solution.

Many Thanks.

@rvhuang rvhuang added help wanted Extra attention is needed question Further information is requested labels Aug 2, 2019
@rvhuang
Copy link
Owner

rvhuang commented Aug 2, 2019

Hi @sindizzy, unfortunately, the library was initially designed for grid system (regardless of dimensions) and similar problems such as 8-puzzle. It may not suit your problem as the major issues are:

  1. It is tricky to implement a method that gets neighbor cities of the city where you are.
  2. It is tricky to implement a method that estimates the cost between the city where you are, and the goal city.

However, I'm still looking for the possibility of extending the library to make it fit the problem similar to yours. Thank you so much for the question!

@sindizzy
Copy link
Author

sindizzy commented Aug 2, 2019

Many thanks. Currently I am using Eric Lippert's implementation as re-coded by Leniel Maccaferri. He uses the Haversine formula to estimate geographic distances.

Works really well but I am looking to also add different algorithms and options. Unfortunately I am just not that skilled in path finding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants