- Home /
Gps Tracker/Reciever
Hi! I want to create an app to android (and maybe apple) where you can see on a gps where a reciever is.
Lets say i build that reciever IRL. i would want to see that on my app. Kinda like "Find my iphone" but i dont want to find a phone, i want to find the reciever i made. Is this possible in Unity, and if so, How?
(i want to see it Realtime location, so if it moves i want to see it move)
Answer by tanoshimi · Dec 15, 2016 at 04:41 PM
Yes, of course. You just get the tracker device to post it's location to a server every x seconds, and use the WWW class to retrieve that in your Unity app and display it on a map.
uhm, not super proffessional, could you please explain more? Xd
Well, which bit do you not understand? You retrieve the location information from the server using the WWW class. You poll this regularly using e.g. a coroutine or using InvokeRepeating(), parse the result, and set the x,y position of a gameobject's transform accordingly based on the GPS latitude/longitude coordinates projected onto a planar map, which you can display on a canvas.
the WWW part, and how to setup the tracker :P the other coding is fine i think
Your answer
Follow this Question
Related Questions
how to make a custom keyboard for your phone 0 Answers
How should I integrate Photon Network with my GPS application? (MapNav) 0 Answers
Coins work in engine but not on phone 0 Answers
Unity4.6.1&Google Play Plugin Freeze Problem On Exit On Android 3 Answers
receive upd packet from android and show visualization 0 Answers