private void OnDestinationSelected(object sender, PlaceSelectedEventArgs e) { // Set destination latlng to iDestLatLng. destLatLng = e.Place.LatLng; iTripDetail.destination = e.Place.NameFormatted.ToString(); LoadMap(true); }
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); }
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); }
void OnPlaceSelected(object sender, PlaceSelectedEventArgs e) { }
void OnPlaceSelected (object sender, PlaceSelectedEventArgs e) { }