map-directions

Is there a way to add custom roads (e.g. off-road routes) to google maps and then get directions to use them?

若如初见. 提交于 2019-12-01 21:21:10
I want to add some custom roads using google maps api (i.e. off-road routes, gravel roads that aren't marked as roads in the map, etc) and then use those roads in conjunction with existing roads to get directions. I know this isn't possible out of the box, but I wonder if there are any tools, custom implementations or 3rd party libraries to do that. No, there isn't a way to do this at this time. You would have to essentially create your own routing application. 来源: https://stackoverflow.com/questions/9880053/is-there-a-way-to-add-custom-roads-e-g-off-road-routes-to-google-maps-and-the

Can I restrict Google Direction API to iOS apps only?

匆匆过客 提交于 2019-12-01 18:39:41
I've been using Google Directions API for my iOS app, but now I want to restrict the API key to be used by my iOS apps (specified by their bundle IDs) only. Is there any solution for this? Thanks Directions API is a web service. The restrictions that will work with an API keys for web services are IP restrictions. It is supposed that web services requests are executed on your backend servers. If you need to restrict an API key, the workaround is to create an intermediate server. Your iOS application should send requests to the intermediate server, intermediate server should send requests to

How to draw route between two locations in iPhone?

ぐ巨炮叔叔 提交于 2019-12-01 14:55:09
How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it? I found that using the MKOverlayPathView and MKPolyLine and MKPolyLineView we can draw routes in Mapview. Find a path finding algorithm that works for you. The A-star algorithm is probably a good one to recommend for this purpose. 来源: https://stackoverflow.com/questions/3421051/how-to-draw-route-between-two-locations-in-iphone

How to draw route between two locations in iPhone?

蓝咒 提交于 2019-12-01 12:19:25
问题 How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it? 回答1: I found that using the MKOverlayPathView and MKPolyLine and MKPolyLineView we can draw routes in Mapview. 回答2: Find a path finding algorithm that works for you. The A-star algorithm is probably a good one to recommend for this purpose. 来源: https://stackoverflow.com/questions/3421051/how-to-draw-route-between-two-locations-in-iphone

Inaccurate Google Maps Elevation Service response when splitting a too large path

一个人想着一个人 提交于 2019-12-01 03:52:46
This is a bit of a question with some level of detail to it, so let me first explain the situation, then my implementation and last the question so you understand best. As of April 4 an update is added and the issues are narrowed down to one pending issue, see the bottom of this question for the up to date info. TLDR; I have a long route returned from Google Maps Directions API and want an Elevation chart for that route. Too bad it doesn't work because it's requested via GET and the URL maximum length is 2.048 chars which get exceeded. I splitted the requests; guaranteed the correct processing

Inaccurate Google Maps Elevation Service response when splitting a too large path

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 00:38:01
问题 This is a bit of a question with some level of detail to it, so let me first explain the situation, then my implementation and last the question so you understand best. As of April 4 an update is added and the issues are narrowed down to one pending issue, see the bottom of this question for the up to date info. TLDR; I have a long route returned from Google Maps Directions API and want an Elevation chart for that route. Too bad it doesn't work because it's requested via GET and the URL

Google Maps Api Directions

家住魔仙堡 提交于 2019-11-29 16:29:44
问题 Can i mark two points on the google maps in my application and then calculate the direction on the map as well as turn by turn navigation ? 回答1: No the Map Activity doesn't provide such a feature. You have to request it via the Google Maps Web API. 回答2: I am create an application which are used to get the driving direction between two points in the map Step be step step1 First create a class MyOverlay.java which are used to draw a path import android.graphics.Bitmap; import android.graphics

Link to iPhone map App from HTML page

不羁岁月 提交于 2019-11-29 08:34:28
问题 Is there a way to link to directions in the iPhone map app from a html page? We're placing an add in an iPhone app which will link to a mobile page on our website - we'd like to add a directions link, thus far google searches have been unrevealing. 回答1: Here is a javascript function that creates the link: function mapLink(myAddress) { return 'http://maps.google.com/maps?q='+escape(myAddress); } This works great on the iPhone. 回答2: A link to http://maps.google.com/maps will automatically open

Snap to Roads Android

强颜欢笑 提交于 2019-11-29 07:54:16
I'm writing an Android app and I need the ability to take a lat/long value and find the lat/long value of the nearest road to it. I've read the article at http://econym.org.uk/gmap/snap.htm , and tried to implement this, but I've had to use the Google Maps Webservices rather than javascript (since it's an android app). When I make a request like maps.google.com/maps/api/directions/xml?origin=52.0,0&destination=52.0,0&sensor=true it doesn't return me the closest road at all! Seems that the above method doesn't work with the webservices. Has anyone got any other ideas about how to solve this

Displaying results of google direction web service without using javascript api

久未见 提交于 2019-11-29 07:22:44
I am developing a application which will find direction between 2 points, display it on the google map and store it in server side so that I can render it again when needed also to compare one route to another route. I have successfully used the google maps api web serivce to find the route and a I have also used the google maps javascript v3 to find the route and display it on the map using DirectionsRenderer . Both of these services return similar JSON with the difference in the name of properties of JSON (see example 1 below). More importantly the JS api return different property names for