Minor changes
This commit is contained in:
parent
f970c6b4fe
commit
fb33596481
2 changed files with 8 additions and 8 deletions
|
|
@ -59,12 +59,12 @@ class _GenericMapState extends State<GenericMap> {
|
||||||
falsePos = resultDecoded['falsePos'];
|
falsePos = resultDecoded['falsePos'];
|
||||||
industries = resultDecoded['industries'];
|
industries = resultDecoded['industries'];
|
||||||
|
|
||||||
var firesCount = fires.length;
|
if (globals.isDevelopment) {
|
||||||
var industriesCount = industries.length;
|
var firesCount = fires.length;
|
||||||
var falsePosCount = falsePos.length;
|
var industriesCount = industries.length;
|
||||||
|
var falsePosCount = falsePos.length;
|
||||||
/* print(
|
print('real: $numFires, fire: $firesCount falsePos: $falsePosCount industries: $industriesCount');
|
||||||
'fire: $firesCount falsePos: $falsePosCount industries: $industriesCount'); */
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,8 @@ Future<BasicLocation> getUserLocation(
|
||||||
Future<String> getReverseLocation(BasicLocation loc,
|
Future<String> getReverseLocation(BasicLocation loc,
|
||||||
[bool external = false]) async {
|
[bool external = false]) async {
|
||||||
final coordinates = new Coordinates(loc.lat, loc.lon);
|
final coordinates = new Coordinates(loc.lat, loc.lon);
|
||||||
var geocoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local;
|
var geoCoder = external ? Geocoder.google(globals.gmapKey) : Geocoder.local;
|
||||||
var addresses = await geocoder.findAddressesFromCoordinates(coordinates);
|
var addresses = await geoCoder.findAddressesFromCoordinates(coordinates);
|
||||||
var first = addresses.first;
|
var first = addresses.first;
|
||||||
print("${first.featureName} : ${first.addressLine}");
|
print("${first.featureName} : ${first.addressLine}");
|
||||||
return first.addressLine;
|
return first.addressLine;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue