Mappls Nearby Search Widget - Advanced Details for iOS
For installation / basic information click here
Optional Configurations
MapplsNearbyCategories
It is the class of type NSObject
that is used to get the information for the nearby categories to show in MapplsNearbyCategoriesViewController
.
It contains the following properties.
title:- It is of type
String
used for the title of the categories buttonselectedBackgroundColor:- It is of type
UIColor
used for the background color for selected category button.unselectedBackgroundColor:- It is of type
UIColor
used for the background color for unselected category button.selectedImage:- It is of type
UIImage
used for selected category button image.unselectedImage:- It is of type
UIImage
used for unselected category button image.unselectedTextColor:- It is of type
UIColor
used for title text color for unselected category button.selectedTextColor:- It is of type
UIColor
used for title text color for selected category button.isSelected:- It is the
Bool
property for showing either the category button is selected or not.tintColor:- It is used to change the image color of the selected category button. It will be used when the user will be using a single png image for both the selected and unselected categories button.
categoryKeywords:- It is an array of
String
which is used as a keyword in the query of nearby search.mapNearbyCategoryIcon:- It is of
UIImage
type which is used as a category image icon for individual category while plotting icon for the nearby search result.
MapplsNearbyCategoryConfiguration
It is a class of type NSObject
that is used for configuring the UI properties of the MapplsNearbyCategoriesViewController
class.
It contains the following properties.
titleViewContainerBackgroundColor: It is the property of type
UIColor
used for setting the background color of titleViewContainertitleViewBackgroundColor:- It is the property of type
UIColor
used for setting the background color of titleViewtitleColor:- It is the property of type
UIColor
used for setting the title color of titletitleFont: It is the property of type
UIFont
used for setting the title font of titlenavigationImage:- It is the property of type
UIImage
used for setting the image in navigationImageViewnextButtonTitle: It is the property of type
String
used for set the Next button titlenextButtonTextFont: It is the property of type
UIFont
used for set the Next button title fontnextButtonTextColor: It is the property of type
UIColor
used for set the Next button title colornextButtonBorderColor: It is the property of type
UIColor
used for set the Next button border colornextButtonBorderWidth: It is the property of type
CGFloat
used for set the Next button border widthnextButtonCornerRadius: It is the property of type
CGFloat
used for set the Next button corner radiusnextButtonBackgroundColor: It is the property of type
UIColor
used for set the Next button background colorlocationDetailsViewBackground: It is the property of type
UIColor
used for set the locationDetailsView background colorlocationDetailsViewCornerRadius: It is the property of type
CGFloat
used for set the locationDetailsView corner radiuslocationDetailsViewShadowColor: It is the property of type
UIColor
used for set the locationDetailsView shadow colorlocationDetailsViewShadowOpacity: It is the property of type
Float
used for set the locationDetailsView shadow opacitylocationDetailsViewShadowOffset: It is the property of type
CGSize
used for set the locationDetailsView shadow offsetlocationDetailsViewShadowRadius: It is the property of type
CGFloat
used for set the locationDetailsView shadow radiuslocationDetailsInfoLabelText: It is the property of type
String
used for set the locationDetailsInfoLabel textlocationDetailsInfoLabelTextColor: It is the property of type
UIColor
used for set the locationDetailsInfoLabel text colorlocationDetailsInfoLabelTextFont: It is the property of type
UIFont
used for set the locationDetailsInfoLabel text fontlocationDetailsFormatedAddressLabelTextColor: It is the property of type
UIColor
used for set the locationDetailsFormatedAddressLabel text colorlocationDetailsFormatedAddressLabelTextFont: It is the property of type
UIFont
used for set the locationDetailsFormatedAddressLabel text font.changeLocationButtonTitle: It is the property of type
String
used to set the changeLocationButton title.changeLocationButtonTitleColor: It is the property of type
UIColor
used for set the changeLocationButton title color.changeLocationButtonTitleFont: It is the property of type
UIFont
used for set the changeLocationButton title Font.usedCurrentLocationButtonTitle: It is the property of type
String
used for set the useCurrentLocationButton title.usedCurrentLocationButtonTitleColor: It is the property of type
UIColor
used for set the useCurrentLocationButton title color.usedCurrentLocationButtonTitleFont: It is the property of type
UIFont
used for set the useCurrentLocationButton title font.
MapplsNearbyConfiguration
A object of type MapplsNearbyConfiguration
which will be required in MapplsNearbyMapViewController
to configure the UI components and nearby request parametes
It contains two object
- nearbyUIConfiguration:- It will helps to configure UI Components of
MapplsNearbyMapViewController
and it is of typeMapplsNearbyUIConfiguration
. - nearbyFilterConfiguration:- It will helps to send custom request parameters in NearbyApi and it is of type
MapplsNearbyFilterConfiguration
.
MapplsNearbyUIConfiguration
Its contains following properies
refLocationIcon: An Icon image of type
UIImage
for the refLocation set by user which will be in the center of the map.refLocationCircleColor: A property for filling color in circle. of type
UIColor
circleAlpha:
paginationNextButtonImage: A property for pagination next button image of type
UIImage
paginationNextButtonbackgroundcolor: A property for pagination next button background of type
UIColor
paginationContainerViewBackgroundColor: A property for paginationContainerViewBackground color of type
UIColor
.paginationPreviousButtonImage: A property for pagination previous button image of type
UIImage
.paginationPreviousButtonbackgroundcolor: A property for pagination previous button background of type
UIColor
.nearbyFilterViewContainerBackgroundColor: A property for FilterViewContainer background color of type
UIColor
nearbyFilterCellBorderWidth: A property for nearbyFilterCell border width of type
CGFloat
nearbyFilterCellBorderColor: A property for nearbyFilterCell border color of type
UIColor
nearbyFilterCellCornerRadius: A property for nearbyFilterCell corner radius of type
CGFloat
nearbySegmentedViewContainerBackgroundColor: A property for nearbySegmentedViewContainer background color of type
UIColor
.segmentedControlSelectedSegmentIndex: A property for segmentedControl SelectedSegmentIndex i.e which index should be selcted while opening the class
MapplsNearbyMapsViewController
segmentedControlBackgroundColor: A property for segmentedControl background color of type
UIColor
segmentedControlBorderColor: A property for segmentedControl border color of type
UIColor
segmentedControlBorderWidth:A property for segmentedControl border width of type
CGFloat
segmentedControlSelectedSegmentTintColor: A property for segmentedControl SelectedSegmentTintColor i.e which index should be selcted while opening the class of type
UIColor
segmentedControlUnselectedforegroundColor: A property for segmentedControl unselected segment text color of type
UIColor
segmentedControlSelectedforegroundColor: A property for segmentedControl selected segment text color of type
UIColor
segmentedControltTextFont: A property for segmentedControl segment text font of type
UIFont
tableCellBackgroundColor: A property for segmentedControl SelectedSegmentTintColor of type
UIColor
tableCellSeparatorColor: A property for segmentedControl unselected segment text color of type
UIColor
placeNameTextColor: The color of result name text in nearby results of type
UIColor
placeAddressTextColor: The color result address in nearby results of type
UIColor
distanceTextColor: The color of the distance in nearby results of type
UIColor
.
MapplsNearbyFilterConfiguration
It is a configuration object to set the value for nearby request parameters in the MapplsNearbyMapViewController
class
it contains the following properties.
refLocation A location provides the location around which the search will be performed it can be coordinate (latitude, longitude) or eLoc in
String
format.radius (integer): provides the range of distance to search over (default: 1000, min: 500, max: 10000).
sortBy: It is used to sort results based on the value provided. It can accept object of
MapplsSortBy
orMapplsSortByWithOrder
searchBy: It is used to search places based on the preference provided. It is of enum type
MMISearchByType
its value can be either.importance
or.distance
filters: On basis of this only a specific type of response returned. it can of type
MapplsNearbySearchFilter
. MapplsNearbySearchFilter has the following properties.- filterKey :- It takes value for `key` to filter result.
- filterValues :- It takes an array of different query values.
- logicalOperator :- `logicalOperator` of enum `MapplsLogicalOperator` its default value is `and`.
``` swift
let filter = MapplsNearbyKeyValueFilter(filterKey: "brandId", filterValues: [String,String])
```
bounds (x1,y1;x2,y2): Allows the developer to send in map bounds to provide a nearby search of the geobounds. where x1,y1 is the latitude,longitude.
isRichData: It is of type
Bool
. It allows some additional information to receive in therichInfo
parameter of the response.shouldExplain: It is of type
Bool
.userName: It is of type
String
. On basis of the value of this, some specific results bounded to a user.pod: It takes place type which helps in restricting the results to a certain chosen type
Below mentioned are the codes for the pod -- Sublocality
- Locality
- City
- Village