private void LayoutPickUp_Click(object sender, EventArgs e)
        {
            Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeFullscreen)
                            .Build(this);

            StartActivityForResult(intent, 1);
        }
        private void LayoutDestination_Click(object sender, EventArgs e)
        {
            Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeOverlay)
                            .Build(this);

            StartActivity(intent);
        }
Beispiel #3
0
        private void LayoutDestination_Click(object sender, EventArgs e)
        {
            AutocompleteFilter filter = new AutocompleteFilter.Builder().SetCountry("US").Build();
            Intent             intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeOverlay)
                                        .SetFilter(filter)
                                        .Build(this);

            StartActivityForResult(intent, 2);
        }
Beispiel #4
0
        void LayoutPickUp_Click(object sender, System.EventArgs e)
        {
            AutocompleteFilter filter = new AutocompleteFilter.Builder()
                                        .SetCountry("NG")
                                        .Build();

            Intent intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeOverlay)
                            .SetFilter(filter)
                            .Build(this);

            StartActivityForResult(intent, 1);
        }
Beispiel #5
0
        void LaunchPlaceSearch()
        {
            const double LowerLeftLat  = 42.343828;
            const double LowerLeftLon  = -71.169777;
            const double UpperRightLat = 42.401150;
            const double UpperRightLon = -71.017685;

            try {
                var intent = new PlaceAutocomplete.IntentBuilder(PlaceAutocomplete.ModeFullscreen)
                             .SetBoundsBias(new LatLngBounds(new LatLng(LowerLeftLat, LowerLeftLon),
                                                             new LatLng(UpperRightLat, UpperRightLon)))
                             .Build(Activity);
                StartActivityForResult(intent, SearchRequestID);
            } catch (Exception e) {
                AnalyticsHelper.LogException("PlaceSearch", e);
                Android.Util.Log.Debug("PlaceSearch", e.ToString());
            }
        }