Skip to main content

Questions tagged [google-roads-api]

The Google Roads API identifies the roads a vehicle was traveling along and provides additional metadata about those roads, such as speed limits.

google-roads-api
1 vote
1 answer
273 views

Google Directions Api Problem on optimisation

i am using directions api with some waypoints. the thing is that its not optimized, it goes with the order of my array and not with the most efficient order. i dont want the order of my array to take ...
vasilis tertylinis's user avatar
-2 votes
1 answer
245 views

Matching Geopoints to road on map

I tried to create an app which track the current user position and I want to display it on a map. The problem is, when I drive by car I get 2 geopoints and if there was a curve between, then it only ...
Fabian's user avatar
  • 88
-2 votes
1 answer
802 views

Speed limit does not work, but snap to roads and the other features does

When I access this link : https://roads.googleapis.com/v1/speedLimits?path=38.75807927603043,-9.03741754643809|38.6896537,-9.1770515|41.1399289,-8.6094075&key=YOUR_API_KEY for google ROADS API it ...
Alec's user avatar
  • 73
2 votes
2 answers
835 views

Google Roads API - HTTP Error 403: Forbidden

Context and problem: I am trying to extract the speed limits of some roads using the Google Roads API. When I try to execute the basic example described on the website, I get the error HTTPError: HTTP ...
user avatar
3 votes
1 answer
4k views

Google Roads API "Requested entity was not found" [closed]

I am trying to use the Google Roads API but it is returning an error when I use the example! If I type the following URL into my browser I get the following response: https://roads.googleapis.com/v1/...
tim.tub's user avatar
  • 79
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
-1 votes
1 answer
486 views

Names of streets adjacent to a building in Google Places API

I'm retrieving geocoordinates for particular locations (e.g. a trainstation) using the Google Maps Places API. I would now like to get the names of streets adjacent to the building (e.g. on two or ...
tobiasegli_te'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
0 votes
1 answer
554 views

Is there a good way to minimize load on Google Maps Roads API?

I am developing a proof of concept/prototype for an internal tool. The basic premise is, that we have a couple of units that have a GPS on them, and they report their location (with typical GPS ...
Barry Chapman's user avatar
-1 votes
2 answers
608 views

How to extract the Lat/Long from Google Maps RoadsApi from a SnappedPoints response?

I am using the Google Maps Java API for the RoadsApi: Docs: https://developers.google.com/maps/documentation/roads/intro API: https://github.com/googlemaps/google-maps-services-java My request is ...
Barry Chapman's user avatar
1 vote
1 answer
2k views

Google Roads API's Nearest Roads function returns more points than given, contains duplicates

I'm sending a number of points to Google's Roads API to adjust them to roads. Note that this is the "Nearest Roads" function and not the "Snap To Roads" one, so the points don't form a path. When I ...
NeonBlueHair's user avatar
  • 1,149
0 votes
1 answer
504 views

google maps roads api looping - how to stop

I've implemented the code seen at: https://developers.google.com/maps/documentation/roads/inspector. In each of the examples on this page, the marker animation loops. How are you supposed to ...
Mike's user avatar
  • 3
0 votes
1 answer
860 views

Google Apis Nearest Roads to snap roads

I am new to use Google api nearest roads to snap the roads. I was trying as in the below link: Google api for nearest road If I have to try the https://roads.googleapis.com/v1/nearestRoads?...
pgman's user avatar
  • 523
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 votes
1 answer
537 views

no api-key error massage

I have tried many ways and many places to enter the API key for but in all the cases, I get the error no-API-key. the request works fine in the postman, meaning the key works fine. the places I tried:...
Evik Ghazarian's user avatar
3 votes
1 answer
1k views

Google Maps snap to roads not returning all values

I'm passing the google maps "Snap to Road" api a list of 99 points. I only get back 85 points, which means I have some points missing that won't be snapped. Is there a way to get back all the points?...
Matt Westlake'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
0 votes
1 answer
765 views

Set speed limits on Maps layer

I would like to create a map with a layer, like a traffic layer, but with the speed limits of roads (route, highway,...) with the différents speed. How can I create a layer with speed limits of all ...
Bastien Devillierre's user avatar
2 votes
1 answer
4k views

Roads API Snap to Road Using GeoJSON

I have 3 LineString features. I am trying to send coordinates from these 3 LineString features to the Roads API so I can get clean, snapped lines on the map. I've been trying to adapt the example ...
kaoscify's user avatar
  • 1,753
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
1 answer
2k views

How to calculate distance using lists of coordinates with Google Maps Roads API

I'm generating static map with snapToRoads (since it accepts multiple waypoints). Given I have lists of coordinates, how can I calculate distance between those coordinates and sum it to get total ...
aldrien.h's user avatar
  • 3,605
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
0 votes
2 answers
408 views

google map apikey works, but road apikey not working

I am using both road api and map api. But I can't get apikey for road api work, in comparison, the apikey for map works fine. Here is my apikey for road: AIzaSyDRknPaFTzqrmHCTyQ6QGcrQMjGFQtK7bg ...
user1470393's user avatar
1 vote
0 answers
592 views

Google Distance Matrix between two locations does not return results when origins and destinations are reversed

Inbound https://maps.googleapis.com/maps/api/distancematrix/json?origins=Mount+Monodnak&destinations=Boston+MA Outbound: https://maps.googleapis.com/maps/api/distancematrix/json?origins=Boston+MA&...
Erol's user avatar
  • 11
-1 votes
1 answer
2k views

How to use a response of SnapToRoad?

I would like to know how to received google maps SnapToRaod response in a javascript code and how I can use the response to generate the map with the SnapToRoad response (in javascript as well). I'm ...
João Oliveira's user avatar
0 votes
1 answer
693 views

Google Road Api SnapToRoad golang

I was trying to implement google's snaptoroad api. But I am not getting any output. I am using golang for the implementation. My Code is as follows: mapClient, err := maps.NewClient(maps....
Arjun Ajith's user avatar
  • 1,880
0 votes
2 answers
5k views

Google Maps API - Show all local roads when zoomed out

Hi my first post on Stackoverflow. When viewing country areas in Google maps the screen is very sparse. I would like to make all local roads visible at a wider loom level. At present the local roads ...
Trevor Tighe's user avatar
0 votes
1 answer
169 views

Given a route how can we find the stating and ending GPS positions of it?

I need to find out the starting and ending GPS location of a given road using Google APIs. For example, how can we find out the starting and ending GPS locations of A1 Colombo-Kandy highway in Sri ...
Malintha's user avatar
  • 421
1 vote
1 answer
3k views

Determine intermediate lat/long at regular time interval in a route

I'm trying to determine a list of intermediate latitude & longitude assuming a given road route from source to destination. For example - Suppose my source is Kansas City, MO & destination is ...
opuser1's user avatar
  • 467
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
-1 votes
1 answer
877 views

Use Snap-To-Roads-APIs for bike paths

I would like to use the snap-to-roads functionality to normalize bike paths. Bikes sometimes follow different rules (they may drive in the wrong direction of a one-way street). Is it possible to use "...
Sarah Mang's user avatar
0 votes
1 answer
2k views

iOS - Snap To Road API with more than 100 coordinates

I know how to use the snap to road API and parse the response, show it on the map etc.. However, the snap to road API has a limitation of 100 coordinates/request. Let's say I have an array of 100+ ...
Balázs Vincze's user avatar
1 vote
1 answer
1k views

snap-to-road returns empty response

I'm referring to this API I'm getting empty response from the API. There is no error, just {} in the response, instead of "snappedPoints" What does it mean ? Where can I find the documentation ...
Mandar Vaze's user avatar
  • 1,419
1 vote
2 answers
2k views

Google Map Road API not interpolating path and not giving smooth route

I am trying to get smooth route for below route path using road API in Roads Inspector but not getting smooth route.Google road api failing to provide smooth route.Some portion of route is not smooth ...
Shankar Phadatare's user avatar
2 votes
1 answer
390 views

Roads API snapped polyline just a straight line

i currently working with roads API and try to use lat long from my database for the path. but the polylines just draw a straight line between the points and is not following the road function ...
Francis Rubia's user avatar
0 votes
1 answer
2k views

how to use google road api with polyline

<?xml version="1.0" encoding="UTF-8" ?> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <...
vinoth kanna's user avatar
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
0 votes
1 answer
966 views

Google Maps' Roads API not working with XHR

I need to snap a Polyline to a road, and I found an example from google that works really well. I tweak it a little bit, and then I get a NetworkError from JavaScript, saying that the response headers ...
guilherme.oc97'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
0 votes
1 answer
1k views

Google Maps Roads API returns duplicate coordinates and placeIds

I'm implementing google maps roads API to pick up the coordinates where I clicked on the roads. But it returns more than expected coordinates and placeids. Suppose I set a direction from place A to ...
Poles's user avatar
  • 3,672
0 votes
1 answer
2k views

set start and end position in google roads API using javascript

I want to know if setting start and end location in the map while I'm retrieving coordinates and placeId through google roads API is possible or not? Because while I initialize Roads API by setting a ...
Poles's user avatar
  • 3,672
4 votes
2 answers
8k views

Google Maps Roads API: Making 'snap to road' more forgiving

I've been tasked with using the Google Maps API to create a tool which a restaurant can use to define delivery zones. Here is the progress: http://codepen.io/keithpickering/pen/NqdzKO Users should be ...
Keith Pickering'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