Copyright | (c) Azavea 2017 - 2020 |
---|---|
License | BSD3 |
Maintainer | Colin Woodbury <colin@fosskers.ca> |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- header :: Parser ()
- advance :: Int -> Parser ()
- blob :: Parser Blob
- block :: Parser Block
- stringTable :: Parser (Vector ByteString)
- node :: Vector ByteString -> Parser Node
- dense :: Vector ByteString -> Parser [Node]
- denseTags :: Vector ByteString -> [Int] -> [Map ByteString ByteString]
- way :: Vector ByteString -> Parser Way
- relation :: Vector ByteString -> Parser Relation
- info :: Int -> Vector ByteString -> Parser Info
- denseInfo :: [Int] -> Vector ByteString -> Parser [Maybe Info]
- varint :: Parser Int
- packed :: ByteString -> [Int]
- ints :: ByteString -> [Int]
- offset :: Int -> Double
- toffset :: Int -> Int
- booly :: Int -> Maybe Bool
Documentation
stringTable :: Parser (Vector ByteString) Source #
The String Table will never be empty, since all Elements have
non-geographic metadata (username, etc.) which contain Strings. The result
must be a Vector
, since we need random access to its contents.
node :: Vector ByteString -> Parser Node Source #
Parse a Node
. Uses unsafeIndex
to quickly retrieve its tag
Strings, assuming that the Node's key/value pairs will always index a legal
value in the given String Table.
denseTags :: Vector ByteString -> [Int] -> [Map ByteString ByteString] Source #
Interpret a list of flattened key-value pairs as Tag metadata Map
s.
packed :: ByteString -> [Int] Source #
Reparse a ByteString
as a list of some Varints.
ints :: ByteString -> [Int] Source #
Decode some packed, Z-encoded, delta-encoded Ints.
offset :: Int -> Double Source #
Restore truncated LatLng values to their true Double
representation.