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
Stringused for the title of the categories buttonselectedBackgroundColor:- It is of type
UIColorused for the background color for selected category button.unselectedBackgroundColor:- It is of type
UIColorused for the background color for unselected category button.selectedImage:- It is of type
UIImageused for selected category button image.unselectedImage:- It is of type
UIImageused for unselected category button image.unselectedTextColor:- It is of type
UIColorused for title text color for unselected category button.selectedTextColor:- It is of type
UIColorused for title text color for selected category button.isSelected:- It is the
Boolproperty 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
Stringwhich is used as a keyword in the query of nearby search.mapNearbyCategoryIcon:- It is of
UIImagetype 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
UIColorused for setting the background color of titleViewContainertitleViewBackgroundColor:- It is the property of type
UIColorused for setting the background color of titleViewtitleColor:- It is the property of type
UIColorused for setting the title color of titletitleFont: It is the property of type
UIFontused for setting the title font of titlenavigationImage:- It is the property of type
UIImageused for setting the image in navigationImageViewnextButtonTitle: It is the property of type
Stringused for set the Next button titlenextButtonTextFont: It is the property of type
UIFontused for set the Next button title fontnextButtonTextColor: It is the property of type
UIColorused for set the Next button title colornextButtonBorderColor: It is the property of type
UIColorused for set the Next button border colornextButtonBorderWidth: It is the property of type
CGFloatused for set the Next button border widthnextButtonCornerRadius: It is the property of type
CGFloatused for set the Next button corner radiusnextButtonBackgroundColor: It is the property of type
UIColorused for set the Next button background colorlocationDetailsViewBackground: It is the property of type
UIColorused for set the locationDetailsView background colorlocationDetailsViewCornerRadius: It is the property of type
CGFloatused for set the locationDetailsView corner radiuslocationDetailsViewShadowColor: It is the property of type
UIColorused for set the locationDetailsView shadow colorlocationDetailsViewShadowOpacity: It is the property of type
Floatused for set the locationDetailsView shadow opacitylocationDetailsViewShadowOffset: It is the property of type
CGSizeused for set the locationDetailsView shadow offsetlocationDetailsViewShadowRadius: It is the property of type
CGFloatused for set the locationDetailsView shadow radiuslocationDetailsInfoLabelText: It is the property of type
Stringused for set the locationDetailsInfoLabel textlocationDetailsInfoLabelTextColor: It is the property of type
UIColorused for set the locationDetailsInfoLabel text colorlocationDetailsInfoLabelTextFont: It is the property of type
UIFontused for set the locationDetailsInfoLabel text fontlocationDetailsFormatedAddressLabelTextColor: It is the property of type
UIColorused for set the locationDetailsFormatedAddressLabel text colorlocationDetailsFormatedAddressLabelTextFont: It is the property of type
UIFontused for set the locationDetailsFormatedAddressLabel text font.changeLocationButtonTitle: It is the property of type
Stringused to set the changeLocationButton title.changeLocationButtonTitleColor: It is the property of type
UIColorused for set the changeLocationButton title color.changeLocationButtonTitleFont: It is the property of type
UIFontused for set the changeLocationButton title Font.usedCurrentLocationButtonTitle: It is the property of type
Stringused for set the useCurrentLocationButton title.usedCurrentLocationButtonTitleColor: It is the property of type
UIColorused for set the useCurrentLocationButton title color.usedCurrentLocationButtonTitleFont: It is the property of type
UIFontused 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
MapplsNearbyMapViewControllerand 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
UIImagefor the refLocation set by user which will be in the center of the map.refLocationCircleColor: A property for filling color in circle. of type
UIColorcircleAlpha:
paginationNextButtonImage: A property for pagination next button image of type
UIImagepaginationNextButtonbackgroundcolor: A property for pagination next button background of type
UIColorpaginationContainerViewBackgroundColor: 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
UIColornearbyFilterCellBorderWidth: A property for nearbyFilterCell border width of type
CGFloatnearbyFilterCellBorderColor: A property for nearbyFilterCell border color of type
UIColornearbyFilterCellCornerRadius: A property for nearbyFilterCell corner radius of type
CGFloatnearbySegmentedViewContainerBackgroundColor: 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
MapplsNearbyMapsViewControllersegmentedControlBackgroundColor: A property for segmentedControl background color of type
UIColorsegmentedControlBorderColor: A property for segmentedControl border color of type
UIColorsegmentedControlBorderWidth:A property for segmentedControl border width of type
CGFloatsegmentedControlSelectedSegmentTintColor: A property for segmentedControl SelectedSegmentTintColor i.e which index should be selcted while opening the class of type
UIColorsegmentedControlUnselectedforegroundColor: A property for segmentedControl unselected segment text color of type
UIColorsegmentedControlSelectedforegroundColor: A property for segmentedControl selected segment text color of type
UIColorsegmentedControltTextFont: A property for segmentedControl segment text font of type
UIFonttableCellBackgroundColor: A property for segmentedControl SelectedSegmentTintColor of type
UIColortableCellSeparatorColor: A property for segmentedControl unselected segment text color of type
UIColorplaceNameTextColor: The color of result name text in nearby results of type
UIColorplaceAddressTextColor: The color result address in nearby results of type
UIColordistanceTextColor: 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
Stringformat.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
MapplsSortByorMapplsSortByWithOrdersearchBy: It is used to search places based on the preference provided. It is of enum type
MMISearchByTypeits value can be either.importanceor.distancefilters: 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 therichInfoparameter 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