Minor changes

This commit is contained in:
vjrj 2018-06-12 21:15:49 +02:00
parent f970c6b4fe
commit fb33596481
2 changed files with 8 additions and 8 deletions

View file

@ -59,12 +59,12 @@ class _GenericMapState extends State<GenericMap> {
falsePos = resultDecoded['falsePos'];
industries = resultDecoded['industries'];
var firesCount = fires.length;
var industriesCount = industries.length;
var falsePosCount = falsePos.length;
/* print(
'fire: $firesCount falsePos: $falsePosCount industries: $industriesCount'); */
if (globals.isDevelopment) {
var firesCount = fires.length;
var industriesCount = industries.length;
var falsePosCount = falsePos.length;
print('real: $numFires, fire: $firesCount falsePos: $falsePosCount industries: $industriesCount');
}
});
});
}

View file

@ -47,8 +47,8 @@ Future<BasicLocation> getUserLocation(
Future<String> getReverseLocation(BasicLocation loc,
[bool external = false]) async {
final coordinates = new Coordinates(loc.lat, loc.lon);
var geocoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local;
var addresses = await geocoder.findAddressesFromCoordinates(coordinates);
var geoCoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local;
var addresses = await geoCoder.findAddressesFromCoordinates(coordinates);
var first = addresses.first;
print("${first.featureName} : ${first.addressLine}");
return first.addressLine;