Fetching Device Position @ Midnight Daily

0

Part of our application needs to track the current location of a device every day at midnight with AWS Location. The tracking needs to be based off the devices local timezone.

My first though was to have the backend get the devices position daily. But if we used this approach, we would need to do this EVERYTIME its midnight somewhere in the world. This could get expensive quick and does not seem a great approach, both from a user and system efficiency perspective.

The other option I though of was having the devices attached to a tracker, but again it does not seem like I configure this to only track location at midnight. So again creates significant additional noise.

Does any one have any suggestions or additional methods of doing this?

Thanks! Greatly appreciated!

Andy-PL
asked 2 years ago193 views
1 Answer
0

Hi Andy,

Hope that I understood your requirements correctly. If you need to be able to get all device positions from when it was last midnight in their own timezone you could:

  • Create a single tracker, tracker name "MidnightTracker".
  • Every device should send a position update on midnight (local timezone), and this position update should go to the "MidnightTracker".
  • Position updates from other times should go to other trackers.
  • Then if you call ListDevicePositions with "MidnightTracker" it will only fetch positions for midnight.

If I misunderstood your intention, please share some more details (such as when are devices sending position updates, when are you fetching positions, do you need to know which timezone the device was from etc). I'd be happy to take another look and propose something else.

Oren

AWS
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions