Newest 'google-roads-api' Questions (original) (raw)
0 votes
1 answer
376 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 ...
- 17
asked Oct 11, 2023 at 12:50
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 ...
- 88
asked Jan 9, 2022 at 21:13
Speed limit does not work, but snap to roads and the other features does [closed]
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 ...
- 73
asked Jul 23, 2021 at 18:02
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 ...
asked Jun 22, 2021 at 14:31
3 votes
1 answer
5k 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/...
- 89
asked Oct 23, 2019 at 11:52
0 votes
0 answers
660 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 = ...
- 11
asked Jul 5, 2019 at 12:35
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 ...
- 1,463
asked Jun 18, 2019 at 10:34
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 ...
- 3,486
asked Feb 27, 2019 at 10:42
0 votes
1 answer
512 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....
- 137
asked Dec 13, 2018 at 7:20
0 votes
1 answer
584 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 ...
- 6,780
asked Dec 1, 2018 at 4:05
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 ...
- 6,780
asked Oct 29, 2018 at 3:26
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 ...
- 1,169
asked Oct 4, 2018 at 19:01
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 ...
- 3
asked Jul 18, 2018 at 20:41
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?...
- 523
asked May 29, 2018 at 8:59
1 vote
1 answer
248 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 ...
- 37.6k
asked Mar 5, 2018 at 15:58
-1 votes
1 answer
552 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:...
- 1,791
asked Feb 22, 2018 at 20:42
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?...
- 3,651
asked Feb 9, 2018 at 21:38
1 vote
0 answers
182 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 ...
- 551
asked Jan 11, 2018 at 4:39
0 votes
1 answer
795 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 ...
- 1
asked Jan 4, 2018 at 21:49
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 ...
- 1,763
asked Nov 21, 2017 at 5:39
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 ...
- 55
asked Nov 16, 2017 at 12:05
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 ...
- 3,635
asked Oct 13, 2017 at 2:43
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 ...
- 1,127
asked Jul 17, 2017 at 8:22
0 votes
2 answers
432 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 ...
- 327
asked Apr 27, 2017 at 14:03
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&...
- 11
asked Nov 14, 2016 at 19:28
-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 ...
- 1
asked Oct 15, 2016 at 22:53
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....
- 1,920
asked Oct 15, 2016 at 5:36
0 votes
2 answers
6k 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 ...
- 11
asked Oct 12, 2016 at 7:11
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 ...
- 421
asked Sep 16, 2016 at 7:20
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 ...
- 477
asked Jul 27, 2016 at 21:09
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 ...
- 2,964
asked Jul 21, 2016 at 7:00
-1 votes
1 answer
886 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 "...
- 11
asked Apr 28, 2016 at 7:37
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+ ...
- 3,832
asked Apr 23, 2016 at 20:49
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,429
asked Mar 29, 2016 at 12:31
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 ...
- 105
asked Mar 16, 2016 at 1:37
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 ...
- 489
asked Feb 2, 2016 at 20:10
0 votes
1 answer
2k views
how to use google road api with polyline
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <...
- 1
asked Jan 25, 2016 at 11:05
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 ...
- 149
asked Jan 18, 2016 at 5:46
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 ...
- 451
asked Dec 15, 2015 at 17:06
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 ...
- 43
asked Dec 8, 2015 at 11:46
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 ...
- 150
asked Sep 9, 2015 at 15:42
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 ...
- 150
asked Sep 8, 2015 at 17:37
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 ...
- 3,682
asked Aug 19, 2015 at 11:19
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 ...
- 3,682
asked Aug 11, 2015 at 8:39
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 ...
- 786
asked Jun 4, 2015 at 15:44
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
- 8,435
asked May 8, 2015 at 6:45