The Location Services feature is based on Guide Search cartridges using its geo-location search capabilities and using the EM framework used for Guide Search-driven pages. A view controller (ATGStoreLocatorViewController
) is implemented to load when the Store locator page displays. This view controller uses the already existing framework, and is very similar to the already implemented class ATGBrowseViewController
or ATGHomeViewController
.
In IOS, Location Services allows location-based apps and websites to use information from cellular, Wi-Fi, and Global Positioning System (GPS) networks to determine the user’s approximate location. For an app to use these features, Location Services must be enabled on the device. Permission is granted individually to each application or website before it can use location data.
Location Services can also be disabled at any time in iOS Settings. The following table outlines the differences in functionality when Location Services is off or on.
Functionality | If Location Services is on | If Location Services is off or declined |
---|---|---|
Show Map | Yes | No, for ‘my location’ Yes, for Browse Store list |
Calculate Distance | Yes: 1. User’s location detected by GPS 2. User’s manually searched location | No |
Search My Location | Yes | No |
Send location start/end points to 3rd Party Map | Yes | Yes, send end point only. |
Sorting search results for browse by City or State | By distance from current location or searched location or alphabetically as follows: 1.Distance (City) – Default Sort 2. ABC (State) 3. Distance (Zip) | Alphabetically as follows: 1. ABC by Store Name (City) - Default Sort 2. ABC by City (State) 3. ABC by Store Name (Zip) |
Sorting search results using Find User’s Current Location. | Sorted by distance from user’s location. | Not applicable. |
Search from map center | Yes | Yes |