简体   繁体   中英

How to detect if a device is in a location or not?

  • I'm trying to build an android application which a user can use whenever on a bus trip. The user starts the trip by scanning a QR code, but the trip is supposed to be automatically ended, when the user leaves the bus.

  • I realize this is somewhat similar to the concept of Amazon's cashless stores, but I do not know how to include this feature into an android application. I also would like to know the hardware that would be required for implementing this.

  • Note: I figured we could use Livetracking somehow, but I don't think that would work since there is no determinate way to make sure if the person actually got off the bus or not.

  • Also, I'm not really sure how RFID would work with respect to android devices, so any insight on how to include it, would be appreciated.

You can implement RFID feature using NFC(Near Field Communication) protocol. For detecting if user left bus, you can check if bus is arrived at destination and check if user continues to be at same velocity / accelerometer (compare the velocity with velocity of walking).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM