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!

1개 답변
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
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠