Skip to content

Conversation

@MisterGC
Copy link
Contributor

Closes #135

Enhance the JSONL response format for the /tiles endpoint to include tile-level metadata for better automated processing.

Changes

  • Add errorCode field to TileLayer for numeric error codes (HTTP status, SQLite codes, etc.)
  • Enhance TileFeatureLayer::toJson() to include:
    • mapgetTileId - decimal uint64 tile ID
    • mapgetLayerId - layer identifier
    • mapId - map identifier
    • idPrefix - common ID parts shared by all features
    • timestamp - ISO 8601 format
    • ttl - time-to-live in milliseconds
    • error object with code and message
  • Update Python bindings with error_code/set_error_code
  • Document new response format in mapget-api.md
  • Add unit tests

Test Plan

  • Unit tests pass
  • Manual verification of JSONL output

- Add errorCode field to TileLayer for numeric error codes
- Enhance TileFeatureLayer::toJson() to include:
  - mapgetTileId (decimal uint64)
  - mapgetLayerId, mapId
  - idPrefix (common ID parts)
  - timestamp (ISO 8601)
  - ttl (milliseconds)
  - error object with code and message
- Update Python bindings with error_code getter/setter
- Document new JSONL response format in mapget-api.md
- Add unit tests for enhanced toJson() output
@sonarqubecloud
Copy link

@MisterGC MisterGC changed the base branch from release/2026.1.0 to release/2025.5.1 January 16, 2026 18:54
@MisterGC MisterGC merged commit fce5ac4 into release/2025.5.1 Jan 16, 2026
3 of 19 checks passed
@MisterGC MisterGC deleted the feature/135-enhance-jsonl-metadata branch January 16, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants