I am developing an application that shows on the map different types of information, such as points of locomotion stops and lines (polyline) of the route of these same and I must also create a functionality that allows me to know in what position of the map is some gps device (which in my case I want to emulate with an intelligent cell phone), how should I do it ?, I searched the internet, but I'm still not sure how it should be done. If anyone has knowledge about this, you can help me out please.
PS: All the information I'm going to look for in a database with which I have. PD2: The location of the device that I consult should be updated every so often to know where it is going.