Xamarin Forms Maps Series II- With GMaps Place APIs

Sermet
Sermet
Nov 28 · 2 min read

In the first article, we completed drawing and restricting area parts that we need in UI part of the map.Now we’ll get location and route details from Google Maps services by using the user’s map selections.Additionally, we will also use autocomplete service for address and place searching:

Place Detail + Autocomplete Api(iOS)

PlaceService.cs includes Google Place Detail, Geocode, Direction, AutoComplete services.

AutoComplete => For the search text, two separate requests sent in the type of places and addresses were shown to the user as one result (types: address and establishment). In the picture above, the red icons list addresses and the black icons list the places. The use of the service in the example searches for specific coordinates and limits.

PlaceDetail => To retrieve the place_id of the selected location selected from the list and use it in the route service.

Geocode => To retrieve the place_id of the selected location and use it in the route service.

Direction => To retrieve the route of the position range.

Route Api Result(Android)

For the first post.

Sample project can be found here.

Bu yazının Türkçe haline buradan ulaşabilirsiniz.

Sermet Blog

Xamarin

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade