Reputation: 805
I was trying to draw a poly line on the road but it gets deviate from the road and the poly line draws over the building near by the road.After a long search I got this link ("snap to road").where I need to send the set of latitude and longitude with pipe line separator along with the road api and it will return the accurate lat long which near to the road points.But I just want to draw on live which mean every single lat long should be accurate.
HashMap<String, String> map = new HashMap<String, String>();
map.put(Constants.URL,"https://roads.googleapis.com/v1/snapToRoads?path="
+d + "," +e+"&key=API KEY");
What I did is I'll call the road api whenever the lat long get changes on my android mobile so it will return the accurate lat long to me but there is a limitation in google that I can only request the api up to 2500/day requests. So is there any alternate way to achieve my requirement?.
Upvotes: 0
Views: 1734
Reputation: 8708
This might help you, I wrote an extensive answer for someone who had the similar issue with. Check it out, hope it would help you too
https://stackoverflow.com/a/11357351/975959
Upvotes: 1