onlylemi / MapView

A MapView on Android platform.
MIT License
678 stars 162 forks source link

Question: What is nodesСontract in RouteLayerTestActivity? #17

Closed askarsyzdykov closed 7 years ago

askarsyzdykov commented 7 years ago

Hello, thanks for this project.

I don't understand - What is nodesСontract in RouteLayerTestActivity? How calculate it for my own map?

AbdAllahAbdElFattah13 commented 7 years ago

it's the relation between your nodes. check the following example: nodesID: 1, 2, 3, 4, 5 nodeContract: (1, 5), (5, 1), (2, 3), (3, 2)

this means that you reach node #5 from node #1 and vice versa, same goes for the #2 and #3; but you can't reach #3 from #1 "it's not in the nodesContract array".

hope that helps :)

askarsyzdykov commented 7 years ago

Thanks man! You saved me