{"id":18162804,"url":"https://github.com/zunda-pixel/tripadvisor-swift","last_synced_at":"2025-04-07T05:23:34.812Z","repository":{"id":225353672,"uuid":"765754598","full_name":"zunda-pixel/tripadvisor-swift","owner":"zunda-pixel","description":"Tripadvisor API Swift Library","archived":false,"fork":false,"pushed_at":"2025-03-03T14:35:06.000Z","size":82,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-14T12:17:30.235Z","etag":null,"topics":["swift","tripadvisor"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/zunda-pixel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-01T14:54:24.000Z","updated_at":"2025-03-03T14:34:16.000Z","dependencies_parsed_at":"2024-03-22T19:47:05.242Z","dependency_job_id":"06aa3819-dc66-4c51-8cae-722faefe5a32","html_url":"https://github.com/zunda-pixel/tripadvisor-swift","commit_stats":null,"previous_names":["zunda-pixel/tripadvisor-swift"],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ftripadvisor-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ftripadvisor-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ftripadvisor-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zunda-pixel%2Ftripadvisor-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zunda-pixel","download_url":"https://codeload.github.com/zunda-pixel/tripadvisor-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247596193,"owners_count":20964060,"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":["swift","tripadvisor"],"created_at":"2024-11-02T10:05:19.408Z","updated_at":"2025-04-07T05:23:34.792Z","avatar_url":"https://github.com/zunda-pixel.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tripadvisor Kit\n\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2Ftripadvisor-swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/zunda-pixel/tripadvisor-swift)\n[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fzunda-pixel%2Ftripadvisor-swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/zunda-pixel/tripadvisor-swift)\n\nTripadvisor Kit for [Tripadivisor API](https://tripadvisor-content-api.readme.io)\n\n## Search Locations\n\n```swift\nimport TripadvisorKit\n\nlet api = TripadvisorAPI(apiKey: \"API_KEY\")\nlet query = \"Location Name\"\nlet locations = try await api.searchLocations(query: query)\nprint(locations)\n```\n\n```shell\n[\n    Location(\n        id: 13331376, \n        name: \"Apple Park Visitor Center\", \n        description: nil, \n        webURL: nil, \n        address: Address(\n            street1: \"10600 N Tantau Ave\",\n            street2: nil,\n            city: \"Cupertino\",\n            state: \"California\",\n            country: \"United States\",\n            postalCode: \"95014-0739\",\n            addressString: \"10600 N Tantau Ave, Cupertino, CA 95014-0739\"\n        ),\n        ancestors: nil,,,\n    ),\n]\n```\n\n## Search Near Locations\n\n```swift\nlet point = Location.Point(latitude: 35.652832, longitude: 139.839478)\nlet locations = try await api.searchNearLocations(point: point)\n```\n\n## Get Location Review\n\n```swift\nlet locationId: Location.ID = \"13331376\"\nlet reviews = try await api.locationReviews(id: locationId)\n```\n\n## Get Loaction Photos\n\n```swift\nlet locationId: Location.ID = \"13331376\"\nlet photos = try await api.locationPhotos(id: locationId)\n```\n\n## Get Loaction Detail\n\n```swift\nlet locationId: Location.ID = \"13331376\"\nlet location = try await api.locationDetail(id: locationId)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Ftripadvisor-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzunda-pixel%2Ftripadvisor-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzunda-pixel%2Ftripadvisor-swift/lists"}