Places Search Bar - ajsmithsw/PlacesSearchBar GitHub Wiki

PlacesSearchBar

AutoCompletePrediction AutoCompleteResult
LocationBias Place
Places PlacesBar
PlacesRetrievedEventHandler PlaceType

AutoCompletePrediction

Auto complete prediction.

Description

Gets or sets the description.

Value

The description.

ID

Gets or sets the identifier.

Value

The identifier.

Place_ID

Gets or sets the place identifier.

Value

The place identifier.

Reference

Gets or sets the reference.

Value

The reference.

AutoCompleteResult

Auto complete result.

AutoCompletePlaces

Gets or sets the auto complete places.

Value

The auto complete places.

Status

Gets or sets the status.

Value

The status.

LocationBias

LocationBias object enables location biasing for PlacesBar Google Places API requests

Constructor(latitude, longitude, radius)

Initializes a new instance of the LocationBias class.

Name Description
latitude System.Double
Latitude.
longitude System.Double
Longitude.
radius System.Int32
Radius.

latitude

The latitude.

longitude

The longitude.

radius

The radius.

ToString

Returns a formatted System.String that represents the current LocationBias for PlacesBar API calls.

Returns

A formatted System.String that represents the current LocationBias for PlacesBar API calls..

Place

Place.

Constructor(jsonObject)

Initializes a new instance of the Place class.

Name Description
jsonObject Newtonsoft.Json.Linq.JObject
Json object.

Latitude

Gets or sets the latitude.

Value

The latitude.

Longitude

Gets or sets the longitude.

Value

The longitude.

Name

Gets or sets the name.

Value

The name.

Raw

Gets or sets the raw.

Value

The raw.

Places

Places.

CreateDetailsRequestUri(place_id, apiKey)

Creates the details request URI.

Returns

The details request URI.

Name Description
place_id System.String
Place identifier.
apiKey System.String
API key.

GetPlace(placeID, apiKey)

Gets the place.

Returns

The place.

Name Description
placeID System.String
Place identifier.
apiKey System.String
API key.

PlacesBar

Places bar.

Constructor

Initializes a new instance of the PlacesBar class.

apiKey

The API key.

ApiKey

Gets or sets the API key.

Value

The API key.

Bias

Gets or sets the location bias.

Value

The bias.

CreatePredictionsUri(newTextValue)

Creates the predictions URI.

Returns

The predictions URI.

Name Description
newTextValue System.String
New text value.

GetPlaces(newTextValue)

Calls the Google Places API to retrieve autofill suggestions

Returns

The places.

Name Description
newTextValue System.String
New text value.

locationBias

The location bias.

minimumSearchText

The minimum search text.

MinimumSearchText

Gets or sets the minimum search text.

Value

The minimum search text.

OnTextChanged(sender, e)

Handles changes to search text.

Name Description
sender System.Object
Sender.
e Xamarin.Forms.TextChangedEventArgs
E.

PlacesRetrieved

The places retrieved handler.

placeType

The place type.

PlaceTypeValue(type)

Returns a string representation of the specified place type.

Returns

The type value.

Name Description
type DurianCode.PlacesSearchBar.PlaceType
Type.

Type

Gets or sets the place type.

Value

The type.

PlacesRetrievedEventHandler

Places retrieved event handler.

PlaceType

Place type.

Address

Get address place types

All

Get all place types

Cities

Get city place types

Establishment

Get establishment place types

Geocode

Get geocode place types

Regions

Get regional place types

⚠️ **GitHub.com Fallback** ⚠️