{"id":18600677,"url":"https://github.com/georust/tilejson","last_synced_at":"2025-06-14T19:32:46.739Z","repository":{"id":39652005,"uuid":"112218174","full_name":"georust/tilejson","owner":"georust","description":"Library for serializing the TileJSON file format","archived":false,"fork":false,"pushed_at":"2023-12-09T14:33:39.000Z","size":813,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-10-29T18:54:05.801Z","etag":null,"topics":["mapbox","rust","serialization","tilejson"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/georust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-11-27T16:08:26.000Z","updated_at":"2024-02-04T02:09:30.000Z","dependencies_parsed_at":"2023-11-10T15:02:10.813Z","dependency_job_id":"0b9a34b2-2f58-4ef8-8cd8-8484610b0ac3","html_url":"https://github.com/georust/tilejson","commit_stats":{"total_commits":50,"total_committers":6,"mean_commits":8.333333333333334,"dds":0.6599999999999999,"last_synced_commit":"0cffc7397a6f8297ae0333fc5ec65f745c5842fb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Ftilejson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Ftilejson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Ftilejson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georust%2Ftilejson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georust","download_url":"https://codeload.github.com/georust/tilejson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713582,"owners_count":20983740,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mapbox","rust","serialization","tilejson"],"created_at":"2024-11-07T02:04:57.993Z","updated_at":"2025-06-14T19:32:46.726Z","avatar_url":"https://github.com/georust.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# tilejson\n\n[![GitHub repo](https://img.shields.io/badge/github-tilejson-8da0cb?logo=github)](https://github.com/georust/tilejson)\n[![crates.io version](https://img.shields.io/crates/v/tilejson)](https://crates.io/crates/tilejson)\n[![docs.rs status](https://img.shields.io/docsrs/tilejson)](https://docs.rs/tilejson)\n[![crates.io license](https://img.shields.io/crates/l/tilejson.svg)](https://github.com/georust/tilejson/blob/main/LICENSE-APACHE)\n[![CI build status](https://github.com/georust/tilejson/actions/workflows/ci.yml/badge.svg)](https://github.com/georust/tilejson/actions)\n[![Codecov](https://img.shields.io/codecov/c/github/georust/tilejson)](https://app.codecov.io/gh/georust/tilejson)\n\n`tilejson` is a crate for serializing/deserializing the [TileJSON](https://github.com/mapbox/tilejson-spec) format — an open standard for representing map metadata.\n\n## Examples\n\n### Reading\n\n```rust\nuse tilejson::TileJSON;\n\nfn main() {\n    let tilejson_str = r#\"{\n        \"tilejson\": \"3.0.0\",\n        \"name\": \"compositing\",\n        \"scheme\": \"tms\",\n        \"tiles\": [\n            \"http://localhost:8888/admin/1.0.0/world-light,broadband/{z}/{x}/{y}.png\"\n        ]\n    }\"#;\n\n    // Parse JSON\n    let mut tilejson: TileJSON = serde_json::from_str(\u0026tilejson_str).unwrap();\n    println!(\"{tilejson:?}\");\n\n    // Add missing default values per TileJSON specification\n    tilejson.set_missing_defaults();\n    println!(\"{tilejson:?}\");\n}\n```\n\n### Writing\n\n```rust\nuse tilejson::tilejson;\n\nfn main() {\n    let tilejson = tilejson! {\n        \"http://localhost:8888/admin/1.0.0/world-light,broadband/{z}/{x}/{y}.png\".to_string(),\n        name: \"tileset name\".to_string(),\n        description: \"some description\".to_string(),\n    };\n\n    let serialized_tilejson = serde_json::to_string(\u0026tilejson).unwrap();\n\n    println!(\"{serialized_tilejson}\");\n}\n```\n\n## Contributing\n\nContributions are welcome! Have a look at the [issues](https://github.com/georust/tilejson/issues), and open a pull request if you'd like to add an algorithm or some functionality.\n\n## Development\n\n* This project is easier to develop with [just](https://github.com/casey/just#readme), a modern alternative to `make`.\n  Install it with `cargo install just`.\n* To get a list of available commands, run `just`.\n* To run tests, use `just test`.\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n  at your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the\nApache-2.0 license, shall be dual-licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorust%2Ftilejson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorust%2Ftilejson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorust%2Ftilejson/lists"}