{"id":43986547,"url":"https://github.com/setlog/iata-hackathon-2025","last_synced_at":"2026-02-07T10:03:54.362Z","repository":{"id":279286753,"uuid":"938235302","full_name":"setlog/iata-hackathon-2025","owner":"setlog","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-24T19:24:34.000Z","size":78,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-24T20:20:34.992Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setlog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-24T16:25:34.000Z","updated_at":"2025-02-24T19:24:37.000Z","dependencies_parsed_at":"2025-02-24T20:20:38.872Z","dependency_job_id":"e5dbdf0d-1100-49dc-978d-f891e1f67f07","html_url":"https://github.com/setlog/iata-hackathon-2025","commit_stats":null,"previous_names":["setlog/iata-hackathon-2025"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/setlog/iata-hackathon-2025","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fiata-hackathon-2025","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fiata-hackathon-2025/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fiata-hackathon-2025/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fiata-hackathon-2025/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setlog","download_url":"https://codeload.github.com/setlog/iata-hackathon-2025/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setlog%2Fiata-hackathon-2025/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29191994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T07:37:03.739Z","status":"ssl_error","status_checked_at":"2026-02-07T07:37:03.029Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-02-07T10:03:53.741Z","updated_at":"2026-02-07T10:03:54.351Z","avatar_url":"https://github.com/setlog.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HAWB to IATA One Record Converter\n\nThis Golang project parses unstructured HAWB documents in PDF format and converts extracted data into the [IATA One Record API](https://www.iata.org/en/programs/cargo/one-record/) using [Vertex AI](https://cloud.google.com/vertex-ai) as an LLM.\n\n## Prerequisites\n\n1. **Golang**: Ensure that [Go](https://go.dev/doc/install) is installed on your system.\n2. **Google Cloud Account**: The project uses Google Cloud services such as Vertex AI and Cloud Storage.\n3. **.env File**: Create a `.env` file with the required configuration values.\n\n## Configuration\n\nCreate a `.env` file in the root directory of the project with the following content:\n\n```ini\nGOOGLE_APPLICATION_CREDENTIALS=\u003cPath to credentials to get an access to the Google Cloud\u003e\nGCLOUD_PROJECT_ID=\u003cID of Google Cloud Project\u003e\nGCLOUD_LOCATION=\u003cLocation of Google Cloud Project\u003e\nGCLOUD_BUCKETNAME=\u003cPath to the Google Cloud bucket\u003e\nAI_MODEL=\u003cAI model for the document parsing, e.g. gemini-2.0-flash-exp\u003e\n```\n\n## Installation\n1. Clone this repository:\n```bash\ngit clone https://github.com/setlog/iata-hackathon-2025.git\ncd iata-hackathon-2025\n```\n2. Install dependencies:\n```bash\ngo mod tidy\n```\n\n## Running the Application\nStart the service using the following command:\n```bash\ngo run -o iata-hackathon-2025 .\n```\n\n## API Endpoints\nThe application provides the following REST API endpoints:\n### 1. PDF Analysis\n- `GET /hwbreportanalysis/all`\n  - Description: Parses all PDF documents (HAWBs) stored in the Google Cloud Storage bucket GCLOUD_BUCKETNAME and returns the output in JSON format.\n- `GET /hwbreportanalysis?fileName=\u003cfileName\u003e`\n  - Description: Parses the specified PDF document \u003cfileName\u003e from the bucket GCLOUD_BUCKETNAME and returns the output in JSON format.\n### 2. Convert JSON to IATA One Record API\n- `GET /json2iata/all`\n  - Description: Converts all generated JSON data into IATA format and uploads it to the One Record Server via API.\n- `POST /json2iata`\n  - Description: Converts a single HAWB JSON into IATA format and uploads it to the One Record Server via API.\n  - Request Body: JSON containing the data to be converted.\n\n## Contact\nFor any questions or issues, please contact the project maintainer or create an Issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fiata-hackathon-2025","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetlog%2Fiata-hackathon-2025","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetlog%2Fiata-hackathon-2025/lists"}