Edit in GitHubLog an issue

Migrating to AEPPlaces reference

This document is a reference comparison of AEPPlaces (3.x) APIs against against their equivalent ACPPlaces (2.x) APIs.

The AEPPlaces extension is implemented purely in Swift and is compatible with the AEPCore swift SDK. To ensure a smooth transition from the ACPPlaces SDK, there are no major changes on the API names or definition. For more details, follow the migration guide below for your Swift or Objective-C mobile application. If explanation beyond showing API differences is necessary, it will be captured as an info hint within that API's section.

Public classes

TypeAEP 3.x (Swift)AEP 3.x (Objective-C)ACP 2.x (Objective-C)
Primary Class
Places
AEPMobilePlaces
ACPPlaces
Enum
PlacesQueryResponseCode
AEPPlacesQueryResponseCode
ACPPlacesRequestError
Class
PointOfInterest
AEPPlacesPoi
ACPPlacesPoi
Enum
PlacesRegionEvent
AEPPlacesRegionEvent
ACPRegionEventType

Public APIs (alphabetical)

clear

Copied to your clipboard
static func clear()

extensionVersion

Copied to your clipboard
static var extensionVersion: String

getCurrentPointsOfInterest

Copied to your clipboard
static func getCurrentPointsOfInterest(_ closure: @escaping ([PointOfInterest]) -> Void)

getLastKnownLocation

Copied to your clipboard
static func getLastKnownLocation(_ closure: @escaping (CLLocation?) -> Void)

getNearbyPointsOfInterest

Rather than providing an overloaded method, a single method supports retrieval of nearby Points of Interest. The provided closure accepts two parameters, representing the resulting nearby points of interest (if any) and the response code.

Copied to your clipboard
static func getNearbyPointsOfInterest(forLocation location: CLLocation,
withLimit limit: UInt,
closure: @escaping ([PointOfInterest], PlacesQueryResponseCode) -> Void)

processRegionEvent

The order of parameters has the PlacesRegionEvent first, and the CLRegion that triggered the event second. This aligns better with Swift API naming conventions.

Copied to your clipboard
static func processRegionEvent(_ regionEvent: PlacesRegionEvent,
forRegion region: CLRegion)

registerExtension

Registration occurs by passing Places to the MobileCore.registerExtensions API.

Copied to your clipboard
MobileCore.registerExtensions([Places.self])

setAuthorizationStatus

Copied to your clipboard
static func setAuthorizationStatus(status: CLAuthorizationStatus)

For additional details, please read the Places API reference.

Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.