I have been working on Google Maps API for a Project which is fully based on Google Maps.
What am doing is :- Storing all the encoded Polyline in database for a particular route. Now i have current position(Latitude and Longitude) for user in database.
Now i want to match if any route Polyline from database is passing from the point of user position or does current user position comes in between any of the polyline with certain amount of range.
I have gone through lots of sites with different ideas but seems nothing is working in my way. Please help me out with this.
This link seems to be helpful, where do i need to pass polyline here. And i want the position of current user should me matched if it lies in between the polyline/ with some specified range.
But they are using Polygon , do i need to convert Polyline to Polygon? http://www.codeproject.com/Articles/62482/A-Simple-Geo-Fencing-Using-Polygon-Method