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.
46
questions
1
vote
1
answer
93
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 ...
-2
votes
1
answer
209
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 ...
-2
votes
1
answer
663
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 ...
2
votes
2
answers
721
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 ...
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/...
0
votes
0
answers
635
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 = ...
-1
votes
1
answer
369
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 ...
2
votes
2
answers
3k
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 ...
0
votes
1
answer
428
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....
0
votes
1
answer
498
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 ...
-1
votes
2
answers
511
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 ...
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 ...
0
votes
1
answer
496
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 ...
0
votes
1
answer
825
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?...
1
vote
1
answer
232
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 ...
-1
votes
1
answer
489
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:...
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?...
1
vote
0
answers
180
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 ...
0
votes
1
answer
724
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 ...
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 ...
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 ...
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 ...
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 ...
0
votes
2
answers
395
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
...
1
vote
0
answers
585
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&...
-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 ...
0
votes
1
answer
683
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....
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 ...
0
votes
1
answer
168
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 ...
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 ...
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 ...
-1
votes
1
answer
865
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 "...
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+ ...
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 ...
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 ...
2
votes
1
answer
389
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 ...
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>
<...
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 ...
0
votes
1
answer
927
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 ...
1
vote
1
answer
861
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 ...
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 ...
0
votes
1
answer
847
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 ...
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 ...
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 ...
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 ...
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