-
Notifications
You must be signed in to change notification settings - Fork 192
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
misleading function names in OSMImporter #231
Comments
The history behind this is that OSM uses a tag 'oneway' to define this, and ways are by default not oneway, so the simplest use case is to check for this tag and return true if it exists. However, in reality, as you noticed, there is more information in this tag, and we also map from that information into direction information, so the name 'isOneway' is too simple for the actual purpose. Since you have taken the time to figure all this out, would you like to make a proposed change to the name and the javadocs? Send a pull-request and we could include it? |
sorry, but as I wrote, for some reason (probably a different IDE the project was created with) I can't get Eclipse to recognize the project |
ok I finally managed to import the project, so the pull request will be there soon |
pull request set off #235 |
ok, now that my fork is clean I'm gonna retry |
Sorry! I wanted to do that on 2.3 today, but Git somehow simply won't get that it's NOT meant to apply the master branch commits to my fork's 2.3... |
Finally made it to create a valid pull request... The reason for the problem was that I kept re-creating the 2.3 branch locally from master. A peer then helped me fetching the remote branch, and cherry-picking the right commit. Git has nice features, but it takes time to figure out how they work right. |
Fun fact about this: In some article (I don't remember exactly where) I read that about... I think it was 40% of all StackOverflow questions are about Git. (This post has quite an amount of "about"s.) |
OK, now that my clean commit has been merged in, I think this is fixed. |
on my attempt to solve #226 on my own by preparing a pull request (stopped because I lost track of the structure of OSMImporter, please you do) I discovered that
isOneway(...)
is actually kind ofgetRoadDirection(...)
, and the little piece of Javadoc isn't very helpful either, it should say something along the lines ofplease improve this (I'm working on Eclipse, which won't even recognize the project, it's probably coming from another IDE, but whatever the reasons I can't access the code, only attach the sources to the class files)
The text was updated successfully, but these errors were encountered: