Function quadkey2xyz

Source
pub fn quadkey2xyz(quadkey: &str) -> UtilesCoreResult<(u32, u32, u8)>
Expand description

Return (x, y, z) for a quadkey as a tuple.

§Errors

Returns an error if the quadkey is invalid and cannot be converted to tile xyz.

§Examples

use utiles_core::quadkey2xyz;
let one_two_three = quadkey2xyz("123").unwrap();
assert_eq!(one_two_three, (5, 3, 3));
let xyz = quadkey2xyz("0313102310").unwrap();
assert_eq!(xyz, (486, 332, 10));