简体   繁体   中英

Real-time Geolocation Tracking

I'm using the google maps javascript API to render a map. I'm using Python's Django v2 but the actual code for the API interaction and map creation is just Javascript.

The client has have a fleet of trucks and I'd like to suggest a new feature: tracking the trucks' real-time location on the map. If each of the trucks had an tablet I imagine I could somehow get near-real-time geolocation information from that device.

Question: Should I be trying to send geolocation info from the tablets to the server (if so how?) or should I be trying to GET/retrieve the geolocation from the tablets (if so how?)? Thinking of apps like Uber or Lyft what is the best practice/tried-and-true protocol to use with IOT & geolocation?

I ended up using GPS Tracker for Android . It's open source and on the Google Play/Apps store for free. It has an option to POST to my server the geolocation of any Android device I set it up on.

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