Add geocoder cache

This commit is contained in:
Matthew Oslan
2020-06-06 15:57:16 -04:00
parent 378955d00b
commit bb67c78163
3 changed files with 41 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ export async function resolveCoordinates( location: string ): Promise< GeoCoordi
const split: string[] = location.split( "," );
return [ parseFloat( split[ 0 ] ), parseFloat( split[ 1 ] ) ];
} else {
return GEOCODER.geocodeLocation( location );
return GEOCODER.getLocation( location );
}
}