map-directions

iOS, how to display route between two points using Google Places Api?

[亡魂溺海] 提交于 2019-12-06 11:03:28
问题 I've been searching for how to draw a route between two points using Google Places API in iOS , but I have not found something interesting. The only way you can draw route between two points is to call web services and to parse JSON into your app, to route a route between two points. Here is a reference. The question : Is there any sample code that can help me on how I can draw route between two points, an origin(based on user current location), and a destination. 回答1: I used this library,

Voice navigation possible in google map api?

泄露秘密 提交于 2019-12-05 10:21:58
How to I activate voice based directions using google map api v3? I already implemented the maps which give directions from start to end points. But now I want to hear the name of my current location . Please help ? I have it implemented in ios UIWebView so I am getting the current location from GPS. Now I update it every 2 sec, but I wana add voice based directions. How is it possible? Please help If you're using Google Directions API for receiving directions, you receive them in JSON format which includes the route points, the route length, the expected duration of the trip and the

Finding Direction in iPhone like in Compass?

时间秒杀一切 提交于 2019-12-04 17:44:27
问题 Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS. Does iPhone 3G supports compass functionality? And can any one tell me how compass application find directions so accurately like a real magnetic compass? Please help me for this. I am in a critical situation. Thanks in advance. 回答1: here is a sample code link

iOS, how to display route between two points using Google Places Api?

ぃ、小莉子 提交于 2019-12-04 17:00:36
I've been searching for how to draw a route between two points using Google Places API in iOS , but I have not found something interesting. The only way you can draw route between two points is to call web services and to parse JSON into your app, to route a route between two points. Here is a reference. The question : Is there any sample code that can help me on how I can draw route between two points, an origin(based on user current location), and a destination. I used this library , very powerful... with this you can draw directions between two points and much more You can get this tutorial

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-04 04:00:56
问题 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. 回答1: No, there isn't a way to do this at this time. You would have to essentially create your own routing application. 来源: https://stackoverflow

Google Maps API - Midpoint along route [duplicate]

匆匆过客 提交于 2019-12-03 16:32:37
This question already has an answer here: Midpoint of route in google maps 1 answer I've been playing around with the Google Maps/Google directions API. Does anyone have an inkling on how I might be able to find the mid-point along a route, not the geographic midpoint. Ideally I'd like to find the lat and long values of this midpoint. Any thoughts? I'm a bit stumped and hoping I may be able to find a suggestion without going crazy trying to find the answer myself. You can use the GetPointAtDistance prototype from Gisgraphy . The prototype returns a LatLng for a specified distance along a

Finding Direction in iPhone like in Compass?

此生再无相见时 提交于 2019-12-03 11:32:53
Do any one have idea for finding true direction using iPhone? I want to implement such application in which I need to find direction in which iPhone is pointing and want to make application same as compass application in iphone 3GS. Does iPhone 3G supports compass functionality? And can any one tell me how compass application find directions so accurately like a real magnetic compass? Please help me for this. I am in a critical situation. Thanks in advance. akshayk80 here is a sample code link from apple.com for using magnetometer and Core Location https://developer.apple.com/library/ios/

How to draw route between two points in MapFragment using Google Maps Android API

十年热恋 提交于 2019-12-03 09:48:58
My target is to complete the following tasks in one single class. I want to give direction between two pointers (current location & prefixed location in navigation drawer) in Google Android Map API. Is it possible or do I need Directions API? Can't direction be done in Android Maps API itself? My goal is to use only one activity or java file for all tasks like fetch current location and show the destination pointer in map (which I have done). Now I want to give the route for these two pointers and the route must change when the prefixed pointer or location is changed by the used. By prefixed,

Check user is following the route or not (iphone)

我的未来我决定 提交于 2019-12-03 06:27:48
问题 i am making an navigation based application. In this application i am drawing a route from points selected by the user. I have requirement of recalculating route if user is not following the route. for Calculating the route i have used Google direction API . and for drawing the route i have used this code - (void) drawRoute:(NSArray *) path { NSInteger numberOfSteps = path.count; [self.objMapView removeOverlays: self.objMapView.overlays]; CLLocationCoordinate2D coordinates[numberOfSteps]; for

Check user is following the route or not (iphone)

喜夏-厌秋 提交于 2019-12-02 19:52:05
i am making an navigation based application. In this application i am drawing a route from points selected by the user. I have requirement of recalculating route if user is not following the route. for Calculating the route i have used Google direction API . and for drawing the route i have used this code - (void) drawRoute:(NSArray *) path { NSInteger numberOfSteps = path.count; [self.objMapView removeOverlays: self.objMapView.overlays]; CLLocationCoordinate2D coordinates[numberOfSteps]; for (NSInteger index = 0; index < numberOfSteps; index++) { CLLocation *location = [path objectAtIndex