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.

The Google Roads API allows you to map GPS coordinates to the geometry of the road, and to determine the speed limit along those road segments. The API is available via a simple HTTPS interface, and exposes the following services:

  • Snap to roads This service returns the best-fit road geometry for a given set of GPS coordinates.
  • Nearest roads This service returns individual road segments for a given set of GPS coordinates.
  • Speed limits This service returns the posted speed limit for a road segment.

The Roads API is also available with the Java Client, Python Client, Go Client and Node.js Client for Google Maps Services.

45 questions
5
votes
1 answer

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 that I can use Google's Roads API to snap to a road…
4
votes
1 answer

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 to go across the road: as the roads turns, it…
Rana Arslan
  • 55
  • 1
  • 7
4
votes
2 answers

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 able to draw a polygon, after which it will snap…
3
votes
1 answer

Google Roads API "Requested entity was not found"

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…
tim.tub
  • 69
  • 2
  • 7
3
votes
1 answer

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…
Matt Westlake
  • 3,499
  • 7
  • 39
  • 80
3
votes
1 answer

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
  • 8,215
  • 28
  • 116
  • 256
2
votes
2 answers

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 Error 403: Forbidden. I am using the following…
2
votes
2 answers

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 locations. Basically the app tracks the users…
Sanoop Surendran
  • 3,484
  • 4
  • 28
  • 49
2
votes
1 answer

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 outlined by Google, but for GeoJSON features. On map…
kaoscify
  • 1,743
  • 7
  • 37
  • 74
2
votes
1 answer

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 runSnapToRoad() { var pathValues =…
Francis Rubia
  • 439
  • 2
  • 6
  • 14
1
vote
1 answer

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 get my results back, there are more points returned…
NeonBlueHair
  • 1,139
  • 2
  • 9
  • 22
1
vote
1 answer

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 being crossed by the lines and the lines are not…
1
vote
0 answers

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 is showing google map but getting below exception …
selva kumar
  • 351
  • 1
  • 3
  • 7
1
vote
0 answers

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&destinations=Mount+Monadnock You can see that data is…
1
vote
1 answer

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 Chicago IL via via US-36 E and I-55 N. Assume i'm going…
1
2 3