Skip to main content

All Questions

0 votes
0 answers
651 views

I am getting "Cannot resolve method 'snapToRoads()' " error for the following code...how to fix it?

I am trying to use Google Roads api, in which want to call a method snapToRoads, but I am facing an issue. I tried to use other method of snapToRoads, but it also shows same error LatLng[] page = ...
Prasad Kawalekar's user avatar
2 votes
2 answers
4k views

How to update marker using live location along a polyline?

My question titles seems to be an existing one, but here is my complete scenario. I have an activity for Map based operations, where am drawing a polyline along a road, lets say a route between two ...
Sanoop Surendran's user avatar
0 votes
1 answer
487 views

Draw custom route on map [duplicate]

I have university area and its Google map routing is undefined inside university. I want to define the roads from academic building to parking because inside university the route on the map not shown....
Muhammad's user avatar
  • 127
1 vote
1 answer
241 views

Roads googleapi: Some places missing and lines passing through edifices

I'm using the Roads Google API passing a list of positions and I want to paint lines in the most probable road driven by a car by these points. Something is going wrong because some points are not ...
NullPointerException's user avatar
1 vote
0 answers
181 views

The supplied API key is not configured for use from this Android app in Google map Road Api(speed limit)

The supplied API key is not configured for use from this Android app in Google map Road Api Created API key with SHA1 & package name from API console(Premium account) Enabled road API My API key ...
selva kumar's user avatar
4 votes
1 answer
5k views

PolyLine is not on the roads: it goes straight from one point to other

My map contains multiple points to tap the location of the user from where he passes, but the polyline is not shown on the roads, but shows a direct line from one marker to other. I want my polyline ...
Rana Arslan's user avatar
0 votes
0 answers
115 views

Match two java collections by property avoiding ConcurrentModificationException (example of Google Roads api)

I haven't found any similar questions, where one collection is accessed while looping through another. Most of the questions about two collections and loops refer to simultaneous looping through both ...
Valeriya's user avatar
  • 1,117
5 votes
1 answer
1k views

How can I extrapolate farther along a road?

Given realtime location data of a moving device over a short period of time, how can I get a lat/long pair further along this road, say, 2 miles, or even better, 5 minutes worth of driving? I see ...
Ken's user avatar
  • 2,964
0 votes
1 answer
1k views

How to request in roads api using snap to roads?

i would like to use the roads api to get the distance of my currentlocation and add the list of Latlng in onLocationChanged and to snap a set of coordinates (approx 100~200 points) to roads and that ...
Aiiz Cabuhat Ü's user avatar
1 vote
1 answer
882 views

Interpolate google maps android roads

I'm doing an Android application that get from server LatLng points of a route and write a polyline snapped to road. To get roads points I'm using the Google API Roads., but in the response I only get ...
xmartinez's user avatar
1 vote
0 answers
951 views

Android Google Maps Polyline not showing on Map

I have made a class that have a method and a locaton listener. The locationListener will be executed every 2 seconds , gets the lat longs and will pass it to the Async Task. The Async Task class will ...
Akshay Sood's user avatar
0 votes
1 answer
850 views

Getting LatLngs Back From Async Task

I have Successfully implemented the new Google Maps Roads API for snapping my position to Long.. its working fine when I use asyncTask.execute.get() but It Freezes my UI.. I want to know how can I ...
Akshay Sood's user avatar
3 votes
1 answer
3k views

Road API for android native

is there any APIs in android native to use Road Map APIs to fetch smooth direction route. i found in google map JavaScript Google map road apis but not sure about the Google Map Library for android
Hunt's user avatar
  • 8,345