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'];
|
||||
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');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue