SearchPlaces 1.0.0

An extension of Xamarin.Forms SearchBar control for implementing Google Places Autocomplete API

Install-Package SearchPlaces -Version 1.0.0
dotnet add package SearchPlaces --version 1.0.0
<PackageReference Include="SearchPlaces" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SearchPlaces --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SearchPlaces

An extension of Xamarin.Forms SearchBar control for implementing Google Places Autocomplete API

Obtaining API key

Use the Google Developers Console to enable the 'Google Places API Web Service' and create a new API key.

Usage

The PlacesBar has the following properties and methods:

Type

An optional PlaceType value that sets the results based on a particular location Type

Bias

An optional LocationBias value that sets a custom location bias (see API docs for details)

ApiKey

A required string value

MinimumSearchText

An optional integer value for setting the minimum number of search characters the user should type before API calls are made (useful for stemming API call volume)

PlacesRetrieved

Subscribe to this event handler to receive search results as AutoCompleteResults objects

Retrieving Place details

The package also contains classes you can use to retrieve place details (including Latitude & Longitude)

Places class

A static class which exposes a GetPlace(placeID, apiKey) function which returns a Place object

Place class

A Place object contains Name, Latitude, Longitude and Raw (JSON response string) properties

SearchPlaces

An extension of Xamarin.Forms SearchBar control for implementing Google Places Autocomplete API

Obtaining API key

Use the Google Developers Console to enable the 'Google Places API Web Service' and create a new API key.

Usage

The PlacesBar has the following properties and methods:

Type

An optional PlaceType value that sets the results based on a particular location Type

Bias

An optional LocationBias value that sets a custom location bias (see API docs for details)

ApiKey

A required string value

MinimumSearchText

An optional integer value for setting the minimum number of search characters the user should type before API calls are made (useful for stemming API call volume)

PlacesRetrieved

Subscribe to this event handler to receive search results as AutoCompleteResults objects

Retrieving Place details

The package also contains classes you can use to retrieve place details (including Latitude & Longitude)

Places class

A static class which exposes a GetPlace(placeID, apiKey) function which returns a Place object

Place class

A Place object contains Name, Latitude, Longitude and Raw (JSON response string) properties

Release Notes

Release 1

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 336 8/24/2018