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

Node info not read if node is a POSSIBLE destination #39

Open
loopRW opened this issue Aug 19, 2016 · 2 comments
Open

Node info not read if node is a POSSIBLE destination #39

loopRW opened this issue Aug 19, 2016 · 2 comments

Comments

@loopRW
Copy link

loopRW commented Aug 19, 2016

If a node is a possible destination node, but NOT the actual destination, the "info needed when coming from this edge", as set on map, is never read. This is a problem when going through a possible destination node during a trip.

e.g:
start-------door(possible destination)-----end

an info set to be read at the door will not be read.

@dsato80
Copy link
Member

dsato80 commented Aug 20, 2016

I'm not sure why but it may be caused by this line

if (![node2 hasTransition] && node2.type != NODE_TYPE_DESTINATION) {
  newState.arrivedInfo = [node2 getInfoComingFromEdgeWithID:node2.preEdgeInPath.edgeID];
}

@loopRW
Copy link
Author

loopRW commented Aug 20, 2016

I will try to change that part as a quick fix, but this also can be dealt with destination poi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants