distwo

20.02.2015, 20:26

Hello,

I'm looking for a way to get the POI on the current calculated route.

I found SKTrackablePOIRule to get the POI but I'm not sure what to pass as parameters.

SKTrackablePOIRule(int routeDistance, int aerialDistance, int numberOfTurns, int maxGPSAccuracy, double minSpeedIgnoreDistanceAfterTurn, int maxDistanceAfterTurn, boolean eliminateIfUTurn)

route distance: 2000 -that should give me the POI that are at less than 2000m

aerial distance: 2000 -Since I only want them on the way, it should be the same as route distance?

number of turns: 0? - Is this the parameter that I should set at 0 in order to only have POI on the current route?

max gps accuracy: x - I'm ok with that one

min speed ignore distance after turn: ? - I don't understand that one

max distance after turn: ? - I don't understand that one

eliminate if U turn: true? - I reckon this will remove all POI that requires a U turn (meaning on the other side of the road?)

I'm looking for a way to get the POI on the current calculated route.

I found SKTrackablePOIRule to get the POI but I'm not sure what to pass as parameters.

SKTrackablePOIRule(int routeDistance, int aerialDistance, int numberOfTurns, int maxGPSAccuracy, double minSpeedIgnoreDistanceAfterTurn, int maxDistanceAfterTurn, boolean eliminateIfUTurn)

route distance: 2000 -that should give me the POI that are at less than 2000m

aerial distance: 2000 -Since I only want them on the way, it should be the same as route distance?

number of turns: 0? - Is this the parameter that I should set at 0 in order to only have POI on the current route?

max gps accuracy: x - I'm ok with that one

min speed ignore distance after turn: ? - I don't understand that one

max distance after turn: ? - I don't understand that one

eliminate if U turn: true? - I reckon this will remove all POI that requires a U turn (meaning on the other side of the road?)