Fixed bug in builtinlocationprovider, small improvements in directions sample