apple-maps

Find the URL scheme of an app on my iPhone

妖精的绣舞 提交于 2020-02-02 10:59:50
问题 Apple maps can open routing apps when it can't provide a route: I want to open a few of those apps from my app. I am aware that I have to whitelist each app that I want to open. This is not the problem. How can I find out the url schemes of those Apps that are installed on my iPhone? One idea is to make a backup via iTunes and at the info.plist of the app. In this plist, the url schemes should be defined with the cfbundleurlschemes key. I think I found such an app in a backup, but I don't

Find the URL scheme of an app on my iPhone

↘锁芯ラ 提交于 2020-02-02 10:59:08
问题 Apple maps can open routing apps when it can't provide a route: I want to open a few of those apps from my app. I am aware that I have to whitelist each app that I want to open. This is not the problem. How can I find out the url schemes of those Apps that are installed on my iPhone? One idea is to make a backup via iTunes and at the info.plist of the app. In this plist, the url schemes should be defined with the cfbundleurlschemes key. I think I found such an app in a backup, but I don't

Sharing a mkmapview screenshot

大憨熊 提交于 2019-12-23 20:02:02
问题 I have a map with lots of stuff on it, which I'd like to share in form of a picture/screenshot. However, as far as i know, the map --both iOS 6 for Apple and iOS 5 for Google-- is copyrighted and I can't simply do that. I thought of Google Static Maps API, but I didn't find something similar for the Apple maps to be available. How could I share a mapview picture without violating their rules and still using the MapKit framework ? Thanks! 回答1: I'm struggling myself with laws of sharing Apple

iOS - Open Apple Maps with latitude and longitude directions

扶醉桌前 提交于 2019-12-22 03:54:22
问题 I am developing an application needs to open an Apple Maps session, and pass in latitude and longitude coordinates to get directions to that location from a users current location. I know this can be done in google maps which I am already doing, but when attempting to open the URL in Apple Maps it just opens the place not the directions from a users current location to their destination. Here is the URL scheme I have been using: http://maps.apple.com/?ll=(someLatitude),(someLongitute) Code:

Open Apple Maps for navigation with destination name set

穿精又带淫゛_ 提交于 2019-12-20 02:53:11
问题 I am fetching location data (like the coordinates used below) from Google's Places API. When linking to Apple Maps for navigation from my app, I am currently using: https://maps.apple.com/?daddr=[latitude],[longitude] When Maps opens, it presents the coordinates for a short amount of time before resolving to an address. What I want is for the name of the destination to appear instead of coordinates or an address. Since I am using React Native, I would prefer a javascript-only solution

Wrong Geolocation with React Native and iOS simulator

南笙酒味 提交于 2019-12-19 09:37:58
问题 I am working with react-native-maps and using the react-native api for geolocation. When I am using location through the api what comes back on the simulator shows me in San Francisco not in Denver, CO where I am located. Is there a reason as to why my location would not show where I am at? my function that runs the location // Get current users locaiton on load componentDidMount() { navigator.geolocation.getCurrentPosition((position) => { console.log(position); let newLat = parseFloat

How would I be able to open google maps when I press a button in my app?

◇◆丶佛笑我妖孽 提交于 2019-12-18 12:56:17
问题 I have this app and I want to use google maps or apple maps to open when the user presses a button in my app. How would I be able to do this? Is there like a link to the maps that opens the app or is it something else? If you can point me in the right direction it would be really helpful. Thanks! I have the button set up below like this: override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) { for touch in (touches ) { let location = touch.locationInNode(self) let node =

iOS Pin color issue in mapkit

旧街凉风 提交于 2019-12-13 04:29:58
问题 I want my annotations in two colors. For that I have used following code, - (MKAnnotationView *)mapView:(MKMapView *)sender viewForAnnotation:(id <MKAnnotation>)annotation { static NSString *identifier = @"MyLocation"; if ([annotation isKindOfClass:[PlaceMark class]]) { MKPinAnnotationView *annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier]; annotationView.enabled = YES; annotationView.canShowCallout = YES; @try { if (annotationView == nil)

How to add apple map marker via query string in the url?

二次信任 提交于 2019-12-12 09:43:02
问题 I want add map marker (like google map) in the map app when I use a url link to open the map on the iPhone from my app. like this : <a href="http://maps.apple.com?ll=latitude,longtitude"> I can open the apple map and the map center is on the location I want, but how to add a marker at the same time? I am not sure how query string I can add on the url I have already read the doc below https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html#/

Application size with loading Apple MAP

╄→гoц情女王★ 提交于 2019-12-10 23:37:46
问题 I am struggling with a problem that looks like simple but it is making the app run size to 30-35 MB. The app is ARC enabled. Here is the scenario. 1) I invoke a UIViewcontroller from within my method (the viewController instance is local to the method)& after pushing it to NavigationController I am setting the local instance as nil. btMapViewController *routeMap = [[btMapViewController alloc]init]; [routeMap setSourcLocation:[txtsource text]]; [routeMap setDestinationLocation:[txtDestination