The basics: Indoor and Outdoor positioning #
//Option 1. Default behaviour: do not specify any OutdoorLocationOptions value
LocationRequest locationRequest = new LocationRequest.Builder().build();
//Option 2. Use the OutdoorLocationOptions.BuildingDetector.GPS_PROXIMITY
OutdoorLocationOptions outdoorLocationOptions = new OutdoorLocationOptions.Builder().buildingDetector(OutdoorLocationOptions.BuildingDetector.GPS_PROXIMITY).build();
LocationRequest locationRequest = new LocationRequest.Builder().outdoorLocationOptions(outdoorLocationOptions).build();