private void OnDestinationSelected(object sender, PlaceSelectedEventArgs e)
 {
     // Set destination latlng to iDestLatLng.
     destLatLng = e.Place.LatLng;
     iTripDetail.destination = e.Place.NameFormatted.ToString();
     LoadMap(true);
 }
示例#2
0
        private void OnOriginSelected(object sender, PlaceSelectedEventArgs e)
        {
            mMap.Clear();
            originTxt    = e.Place.NameFormatted.ToString();
            originLatLng = e.Place.LatLng;

            CameraUpdate cameraUpdate = CameraUpdateFactory.NewLatLngZoom(originLatLng, 18);

            mMap.AddMarker(new MarkerOptions().SetPosition(originLatLng).SetTitle("Origin"));
            mMap.AnimateCamera(cameraUpdate);
        }
示例#3
0
        private void OnDestinationSelected(object sender, PlaceSelectedEventArgs e)
        {
            // Set destination latlng to iDestLatLng.
            destLatLng = e.Place.LatLng;

            // Instantiate trip
            Trip trip = new Trip();

            trip.originLatLng      = originLatLng.Latitude.ToString() + "," + originLatLng.Longitude.ToString();
            trip.destinationLatLng = destLatLng.Latitude.ToString() + "," + destLatLng.Longitude.ToString();
            trip.origin            = originTxt;
            trip.destination       = e.Place.NameFormatted.ToString();

            Intent intent = new Intent(this, typeof(TripConfirmation_1));

            intent.PutExtra("Member", JsonConvert.SerializeObject(user));
            intent.PutExtra("Trip", JsonConvert.SerializeObject(trip));
            StartActivity(intent);
        }
 private void OnOriginSelected(object sender, PlaceSelectedEventArgs e)
 {
     originLatLng       = e.Place.LatLng;
     iTripDetail.origin = e.Place.NameFormatted.ToString();
     LoadMap(true);
 }
示例#5
0
 void OnPlaceSelected(object sender, PlaceSelectedEventArgs e)
 {
 }
		void OnPlaceSelected (object sender, PlaceSelectedEventArgs e)
		{
			
		}