Apple Maps Server API

RSS for tag

Increase performance, lower data usage, and improve battery life across platforms for a variety of Apple Maps features.

Apple Maps Server API Documentation

Posts under Apple Maps Server API tag

10 Posts
Sort by:
Post not yet marked as solved
0 Replies
218 Views
Hello, I'm trying to figure out how to detect when user stops scrolling (panning) the map. The problem: I have a MapAnnotation that I want to always keep in the centre, even is user is panning/scrolling the map. When map is open first time, the original annotation location is user's current location. I request the name of the location to display it on top of the annotation. when user moves the map around, I want to track when he stop this action and select a location in the centre of map's new region and display the a location's name on top of the annotation I can't use .onChange() because region centre changes constantly as user moves the map, because it causes to many requests for location's name DragGesture .onEnded() is never called, so I have no idea when customer stops moving the map So my question is - how to detect in this case when customer stopped moving the map? Have anyone faced the same problem? Any ideas how to solve it?
Posted
by AndySh.
Last updated
.
Post not yet marked as solved
3 Replies
1.5k Views
Hi, We are building an app that aims to organize people's lives. This means we help people discover and find things like places, and help users store the data of the things they save to their library. My question is: Are we allowed to permanently store a returned place's name, description, ID, coordinates, potential images, etc from the responses of places from the Apple Maps Server and Mapkit API? And if so, is there a guarantee that these terms won't change? The user would have to be allowed to download all the data he's saved. One of the reasons we don't use Google Maps API is because they only let us store a place's unique Google Place ID, without its corresponding photos, coordinates, description or even name. This means a user can't search the information on their library without making immense API calls that would be prohibitively expensive, and also can't use the app offline. Thanks for any insight.
Posted
by Pedro_rtm.
Last updated
.
Post not yet marked as solved
0 Replies
934 Views
I have two questions below: Are  there any api's through which i can claim or add/update business listings via my web or app , if so please let me know the link of documentation with pricing link (if any) ? Also if i have to add multiple listings on map , is there any bulk sheet upload method on your site , if so please let me know about the same.
Posted
by ak007.
Last updated
.
Post not yet marked as solved
0 Replies
516 Views
Hi I need Help I do control Apple Map I want overlay image on map I use MKOverlayRenderer and this function override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext) and then success overlay but map zoom level 2.0 over than image broken if not use CGContext.rotate then image are not broken but use rotate then image are broken class IndoorInfoOverlay: NSObject, MKOverlay { let coordinate: CLLocationCoordinate2D let boundingMapRect: MKMapRect init(indoorInfo: IndoorInfo) { boundingMapRect = indoorInfo.overlayBoundingMapRect coordinate = indoorInfo.midCoordinate } } class IndoorInfoOverlayView: MKOverlayRenderer { var overlayImage: UIImage var parent: IndoorMapView init(overlay: MKOverlay, overlayImage: UIImage,_ parent: IndoorMapView) { self.overlayImage = overlayImage self.parent = parent super.init(overlay: overlay) } override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext) { guard let imageReference = overlayImage.cgImage else { return } let bearing = degreesToRadians(360 - (Double(self.parent.floorData!.FLOOR_BEARING) ?? 0)) let rect = self.rect(for: overlay.boundingMapRect) context.scaleBy(x: 1.0, y: -1.0) context.translateBy(x: 0.0, y: -rect.size.height) if self.parent.floorData != nil { context.rotate(by: bearing) } context.draw(imageReference, in: rect, byTiling: false) } private func degreesToRadians(_ x:Double) -> Double { return (Double.pi * x / 180.0) } }````
Posted Last updated
.
Post not yet marked as solved
0 Replies
574 Views
So my question is regarding mapkitJS and if there is any way that i can use it in my backend just for it's directions API. The URL it makes requests on is https://api.apple-mapkit.com/v1/directions Generating a signed JWT token for authorisation is fine, but the part where that token needs to be used to initialise mapkitJS is where i am having difficulty Can you please let me know if there is a way i can make requests on that url above and how to go on about the initialization using that bearer token?
Posted Last updated
.