directions

Error: java.lang.IllegalStateException: no included points

北慕城南 提交于 2019-12-23 09:14:42
问题 I am getting this error when trying to search a place on map. I tried other resolutions when searching, but no luck. java.lang.IllegalStateException: no included points on this line: LatLngBounds.Builder builder = new LatLngBounds.Builder(); The code I am using: try { JSONObject jsonObject = new JSONObject(response.body().toString()); JSONArray jsonArray = jsonObject.getJSONArray("routes"); for (int i = 0; i < jsonArray.length(); i++) { JSONObject route = jsonArray.getJSONObject(i);

Traceback through a Matrix of Directions in R

我的梦境 提交于 2019-12-22 10:08:21
问题 I have a matrix like this: http://i.imgur.com/3HiEBm4.png You can load it like this: matrix = structure(c("-", "-", "C", "G", "C", "A", "-", "0", "V", "V", "V", "V", "C", "H", "D", "V", "DV", "V", "A", "H", "H", "D", "DV", "D", "C", "H", "DH", "DH", "D", "V", "G", "H", "H", "D", "H", "D", "T", "H", "H", "H", "DH", "DH", "A", "H", "H", "H", "DH", "D", "T", "H", "H", "H", "DH", "H"), .Dim = c(6L, 9L)) Starting at the bottom-right corner, the goal is to follow the directions (D = move diagonally

Google API (directions) - creating routes that avoid certain points [duplicate]

人走茶凉 提交于 2019-12-22 08:54:53
问题 This question already has answers here : Blacklisting specific roads from Google Maps/Mapquest? (4 answers) Closed 2 years ago . Google Maps API does not seem to provide a means to create routes that avoid or tend to avoid certain points. Has anyone worked on something like this? I want to create exception rules on routes. For example: show routes that do not have traffic signals. 回答1: I had the same problem and this is by far the best solution i have found. "As mentioned in another answer,

Demo for Displaying Multiple Google Directions (Google Maps API v3)

泄露秘密 提交于 2019-12-22 06:53:58
问题 Hey all, is there a functioning demo out there for displaying multiple directions routes on a single Google map? The other question on stack links to a set of snippets…I feel like I'd be able to work better I just saw a functional script in action. Thanks much! 回答1: Using the snippets from the other post, I got what I wanted. Not only did I achieve multiple directions displays on the same map, but there are also unique waypoints to each directions object. Link to the demo 来源: https:/

Google Maps Api v3: How to change the Default waypoint markers in the Directions (set)Panel?

和自甴很熟 提交于 2019-12-22 01:29:43
问题 How do you change the markers with custom markers active in the map in the directions panel and change the color aswell from the body? Any help much appreciated. The screenshot: http://i.stack.imgur.com/wYFoc.png 回答1: Just to keep alive @MrUpsidown comment and code alive: Short answer: you can't. Longer answer: don't use the directions panel. Create your own, with the information you need (from the directions service response) and add your custom markers. Nov 24 at 16:32 Fiddle var

How do we get the shortest distance route from point A to B by default from Google Direction API

北城以北 提交于 2019-12-21 04:04:34
问题 How do we get the shortest distance route from point A to B by default from Google Direction API suggested alternative routes? By default it gives us shortest duration routes depending upon the current traffic conditions. I have noticed that google responds with multiple alternative routes if you turn on "provideRouteAlternatives=true", I was wondering if we could send a parameter to Google API so that it will always return shortest distance route by default 回答1: As Rameshwor has mentioned,

How do we get the shortest distance route from point A to B by default from Google Direction API

大城市里の小女人 提交于 2019-12-21 04:04:28
问题 How do we get the shortest distance route from point A to B by default from Google Direction API suggested alternative routes? By default it gives us shortest duration routes depending upon the current traffic conditions. I have noticed that google responds with multiple alternative routes if you turn on "provideRouteAlternatives=true", I was wondering if we could send a parameter to Google API so that it will always return shortest distance route by default 回答1: As Rameshwor has mentioned,

IPhone : google maps directions

风格不统一 提交于 2019-12-21 02:39:11
问题 i'm developing an iPhone app which embed a mapView made with mkmapkit. I got two coordinates and I'm tracing the direction between these two points. Everything works well. I'm using google maps api : maps.googleapis.com/maps/api/directions to retrieve xml with all the steps of the direction. But one thing is very strange : I just can't understand why driving direction is not accurate. Between two steps it trace a right line and don't follow the road while walking travel mode trace a very

Android indoor directions with Google api

耗尽温柔 提交于 2019-12-18 18:32:13
问题 I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to walking. Is there currently any way to do this? 回答1: It seems that the Google Maps Android API does not support this feature for now. Even if you select the correct travel mode, which should be walking, the route is traced on

Get stopover towns using the Google Maps API (directions)

Deadly 提交于 2019-12-17 18:33:28
问题 I am new to the Google Maps API (3.0). I would like to get stopover cities based on a direction query to the Maps API and did not find any documentation on this specific topic so far. https://developers.google.com/maps/documentation/javascript/directions#Steps I am getting a direction based on Address A and address B. I would like to know every city that a user would cross during his journey. I found some information about way points (stopovers) but these relate to every stop or street change