| Crates.io | osm-api |
| lib.rs | osm-api |
| version | 0.1.1 |
| created_at | 2025-02-13 14:16:05.640267+00 |
| updated_at | 2025-02-14 09:59:15.487682+00 |
| description | Rust binding for the Open Street Map Api |
| homepage | |
| repository | https://github.com/x807x/openstreetmap-api |
| max_upload_size | |
| id | 1554257 |
| size | 75,192 |
A Rust binding for the OpenStreetMap API that allows you to interact with OpenStreetMap data programmatically. This crate aims to provide a simple and efficient way to access and manipulate OSM data in your Rust projects. NOTE: This project is still on early stages of development, and many function are not yet implemented. If you interested in contributing, please feel free to do so.
Add this crate to your Cargo.toml:
cargo add osm-api
Below is a simple example demonstrating how to fetch and display OSM data:
extern crate osm_api;
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Replace "some_endpoint" with an actual API endpoint.
let response = osm_api::get_data("some_endpoint")?;
println!("{:#?}", response);
Ok(())
}
| API version | Rust binding version |
|---|---|
| 0.6 | 0.1.* |
Contributions are welcome! If you encounter issues or have ideas for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License OR APACHE-2.0 License.