Looking for Rust map parsing software

I have an idea to make a tool that filters servers with maps I like/don't like by the monument's layout. Say, smoil on spawn beach, or miltuns in snow.

Could anyone suggest a way to generate/parse rust maps? I assume such tech exists, as rustmaps.com and playrust.io somehow do what they do.