I'm building an application that gets user's position and tracks its changes while driving providing some information stored in shape file. To get the most accurate information from this shape file the application must find the shape (street/road) that the user is currently on. Most of the shapes have street names, and most of the streets/roads are stored in many shapes, so each street/road may consist of many shapes, but all these shapes will have the same street name provided in the shape file.
Since the accuracy of GPS is not 100%, sometimes the data the application receive is not enough to match the location to the right shape in the database. So, if the user drives on the same road for a while, sometimes the application will place him on a nearby road by mistake (like exits from a highway which are really close to main road, but not the same one).
Currently I match the user's location to a shape from the database only by its last position by finding the closest segment to this point. This is not accurate enough, so I need to find a better way, probably by using some kind of user's history (latest locations and street names) since the application receives GPS updates every second. So, how do I find the most accurate street/road by a given coordinate and some previous locations of this same user?
أكثر...
Since the accuracy of GPS is not 100%, sometimes the data the application receive is not enough to match the location to the right shape in the database. So, if the user drives on the same road for a while, sometimes the application will place him on a nearby road by mistake (like exits from a highway which are really close to main road, but not the same one).
Currently I match the user's location to a shape from the database only by its last position by finding the closest segment to this point. This is not accurate enough, so I need to find a better way, probably by using some kind of user's history (latest locations and street names) since the application receives GPS updates every second. So, how do I find the most accurate street/road by a given coordinate and some previous locations of this same user?
أكثر...