Skip to content

Locations always about 60 secs apart #151

Open
@mrwrighty

Description

@mrwrighty

Here are my settings:-

nativescript_background_geolocation_lt_1.BackgroundGeolocation.ready({
            reset: true,
            debug: false,
            url: 'https://myURL/service.asmx/uploadgeo,
            logLevel: nativescript_background_geolocation_lt_1.BackgroundGeolocation.LOG_LEVEL_VERBOSE,
            desiredAccuracy: nativescript_background_geolocation_lt_1.BackgroundGeolocation.DESIRED_ACCURACY_NAVIGATION,
            distanceFilter: 75,
            stopTimeout: 1,
            elasticityMultiplier: 4,
            autoSync: true,
            stopOnTerminate: false,
            startOnBoot: true,
            foregroundService: true,
            preventSuspend: false,
            heartbeatInterval: 60*30,
            httpRootProperty: 'location',
            locationTemplate: '[{"lat":<%=latitude%>,"lng":<%=longitude%>,"heading": <%=heading%>,"speed":<%=speed%>,"accuracy":<%=accuracy%>,"timestamp":"<%=timestamp%>","event":"<%=event%>","activity_type":"<%=activity.type%>","activity_confidence":<%=activity.confidence%>,"battery_level":<%=battery.level%>,"battery_charging":"<%=battery.is_charging%>","is_moving":"<%=is_moving%>","UUID":"<%=uuid%>"}]',
            enableHeadless: true

No matter what I do, or the speed of the vehicle, GeoLocations are always around 60 seconds apart. I have the multiplier set as you can see. The speed does not seem to impact on the period between each location recorded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Participants

      @mrwrighty

      Issue actions

        Locations always about 60 secs apart · Issue #151 · transistorsoft/nativescript-background-geolocation-lt