mapkit

Put MKPointAnnotation on MKDirections at a specific distance

时光怂恿深爱的人放手 提交于 2019-12-11 06:28:41
问题 I'm using MKDirections to draw a route from point A to point B, and I'm looking to put a MKPointAnnotation at specific distance from the starting point. For example, I have a MKMap with MKDirections drawn from LA to NY. I then would like to place a pin at the 10 mile marker for the route the user has decided to take. Any thoughts on how to find the lat/long, using the chosen route at a specific distance? Thanks. - (void)showDirections:(MKDirectionsResponse *)response { NSInteger iDistance = 0

/SourceCache/GoogleMobileMaps/GoogleMobileMaps-217.2/googlenav/mac/Loader.mm:194 Incorrect protocol version. We got 15393, but were expecting 14

时光毁灭记忆、已成空白 提交于 2019-12-11 06:23:19
问题 Any one knows what this exception means? /SourceCache/GoogleMobileMaps/GoogleMobileMaps-217.2/googlenav/mac/Loader.mm:194 Incorrect protocol version. We got 15393, but were expecting 14. 回答1: The wifi connectivity was not authorized and I got a Parse Error because all my HTTP requests returned a login page when a response object was expected. This exception occured when google maps was trying to update my current location. Hope this answer helps someone. 来源: https://stackoverflow.com

How to Remove Bad GPS Coordinate

廉价感情. 提交于 2019-12-11 06:17:12
问题 As shown in the image below, there is a sudden jump in GPS coordinate while I keep track of user activity (walking, biking or driving). I do not know how to fix this problem even though I have already attempted multiple ways to solve, but as a reference I also posted my code below. In this image screenshot, I parked my car and walked to campus and came to my office, but it shows me that I went to Harvest Ln which is not right. -(void)locationManager:(CLLocationManager *)manager

snap to road for apple maps

我的梦境 提交于 2019-12-11 06:09:23
问题 I have a project which is constrained to working with apple maps, corelocation and apple's mapkit -- 3rd party interfaces aren't allowed. I need to display a map view showing the user's current location (standard blue dot) and simultaneously place a pin on the road nearest the user's current location -- a 'snap to road' which is a best estimate of the user's nearest location. I know how to retrieve the user's current address and use the returned street name and address, but i don't know how

iOS MapKit custom callout with image and text on top of a pin programmatically using swift

萝らか妹 提交于 2019-12-11 06:07:02
问题 I am trying to show a custom call out on top of pin in the map. It is required that I show an image with some text on top of pin as my call out. The code I wrote produces the following output. However, my desired output looks like this: How can I achieve my desired output ? Please note that the bubble is an image asset which has to be used, I know how to draw a bubble using CAShapeLayer but that does not accomplish what I want. Here is the code so far. // methods for Custom annotations func

MKMapView overlapping MKAnnotations only allow showing two of the callouts

旧巷老猫 提交于 2019-12-11 05:58:00
问题 I have three MKPointAnnotation objects that are added in the exact same coordinates to an MKMapView and they are each given a unique title. MKPointAnnotation *a1 = [[MKPointAnnotation alloc] init]; a1.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a1.title = @"Title 1"; [self.mapView addAnnotation:a1]; MKPointAnnotation *a2 = [[MKPointAnnotation alloc] init]; a2.coordinate = CLLocationCoordinate2DMake(45.875684, -122.656254); a2.title = @"Title 2"; [self.mapView

Can you use Apple's mapkit for a hybrid application?

≡放荡痞女 提交于 2019-12-11 05:35:03
问题 This web application is for Web and Android. I looked into others like Google, but they have limits. If you can use it can anyone point me to the documentation for it. Thanks. 回答1: 2019 Update: Apple now has a first-party JavaScript framework for using Apple Maps on the web: MapKit JS documentation. Original Answer: There is no officially supported way to use Apple Maps or MapKit on any platform but except iOS and macOS. That said, here is the JS source for implementing Apple Maps on the web.

Uibutton to pass location information and start to navigation on map in swift

孤者浪人 提交于 2019-12-11 05:08:33
问题 I have a array content of CLLocationcooridinate2d and location detail. And I put it on tableview cell with Uibutton, what Im doing is trying to pass the specific cell information by Uibuttom and start a new view of map view and began to navigation. Here is my code: var tripspot:[tripSpot] = [ tripSpot( title: "一中商圈", coordinate: CLLocationCoordinate2DMake(24.149062, 120.684891), regionRadius: 300.0, location: "台中市北區一中街", type: "Food",cllocation:CLLocation(latitude: 24.181143, longitude: 120

iPhone - Updating Annotation subtitle in mapkit

陌路散爱 提交于 2019-12-11 05:06:30
问题 I have a custom placemark with title and subtitle. The subtitle is actually displaying the address of the dropped pin using the reverse geocoder. I have a button which has an action to drop the pin. This action gets the location coordinates of the user, and then calls [geocoder start] which gets the full address with Reverse Geocoder and generates the custom annotation and then calls [mapView addAnnotation:customPlacemark]. My problem is that using this sequence order, when there's no a WiFi

How to calculate time required to complete the path in between two locations?

独自空忆成欢 提交于 2019-12-11 04:35:58
问题 I want to calculate the time require to complete path in between two location as like in Maps application in which if you will find the path in two location then it will also show you the estimated time required to complete it. Please suggest me regarding it. Thanks in advance. 回答1: If you use the Google Directions API you will be provided with a duration for the trip as part of the returned route. All you have to do is specify whether it should calculate for walking, bicycling or driving. 来源