Skip to content

Requesting to help on how to achieve the implementation of stopping the moving annotation at a particular location? #2

@deepcodingios

Description

@deepcodingios

Hi Rotem,

From your yesterday's answer i have got an understanding on how this should be done. But my problem here lies in when the annotation point where it should stop at a particular point and then resume from that stopped point. HGMovingAnnotation Class has a "Stop" Method but when i tried to call the Stop method from "startTracking" Method it doesn't get called. I am actually checking the condition if the currentLocation reaches certain location coordinates.

double latitude = currentLocation.x;
double longitude = currentLocation.y;
if (latitude == 137472336.403570 && longitude == 90052702.711254 ) {
NSLog(@"Inside If condition");
[self stop];
}

Can you please suggest me an alternative on how to implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions