#beacon #eth #buildings #metadata #located #data #zurich

eth-beacons-indoor

Metadata of beacons located inside the buildings of ETH Zurich

11 releases

new 0.0.19 Feb 21, 2025
0.0.18 Feb 21, 2025

#685 in Development tools

Download history

484 downloads per month

MIT license

3.5MB
79K SLoC

Beacon Generator

This project is a Rust-based tool for generating beacon data files from a given API endpoint. The generated files contain beacon information grouped by buildings and are used for location-based services.

Features

  • Fetches beacon data from a specified API endpoint.
  • Parses the JSON response and groups beacons by buildings.
  • Generates Rust source files with beacon data.
  • Supports feature flags for conditional compilation of beacon data.

Requirements

  • Rust
  • Cargo

Usage

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
    
  2. Build the project:

    cargo build
    
  3. Run the tool to generate beacon data:

    cargo run --package xtask generate --uri <API-URL>
    
    • --uri: The API endpoint to fetch beacon data from.

Dependencies

~250–710KB
~16K SLoC