{"id":15058944,"url":"https://github.com/samkhawase/loolocator","last_synced_at":"2025-10-09T02:49:06.848Z","repository":{"id":141909529,"uuid":"122946399","full_name":"samkhawase/LooLocator","owner":"samkhawase","description":"A simple iOS app that fetches the crowd-sourced data from OpenStreetMaps, and shows toilets within walking distance.","archived":false,"fork":false,"pushed_at":"2020-10-21T14:46:06.000Z","size":235,"stargazers_count":237,"open_issues_count":1,"forks_count":17,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-08-20T12:47:30.721Z","etag":null,"topics":["carthage","ios","openstreetmap","quick","swift","xcode"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samkhawase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2018-02-26T09:32:57.000Z","updated_at":"2025-03-10T04:12:56.000Z","dependencies_parsed_at":"2024-05-02T23:04:17.850Z","dependency_job_id":"2638fdfe-6555-489a-bf9b-508091d40d9e","html_url":"https://github.com/samkhawase/LooLocator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samkhawase/LooLocator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samkhawase%2FLooLocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samkhawase%2FLooLocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samkhawase%2FLooLocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samkhawase%2FLooLocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samkhawase","download_url":"https://codeload.github.com/samkhawase/LooLocator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samkhawase%2FLooLocator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000766,"owners_count":26082906,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["carthage","ios","openstreetmap","quick","swift","xcode"],"created_at":"2024-09-24T22:33:56.912Z","updated_at":"2025-10-09T02:49:06.820Z","avatar_url":"https://github.com/samkhawase.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# LooLocator\n\nFind Amenities (*like toilets*) near you! The simple iOS  fetches the crowd-sourced data from OpenStreetMap, and shows toilets within walking distance. \nUser can then use AppleMaps to find walking directions to the amenity. \n\n## Design Rationale\n\nThe following series of bite-sized posts explain the design rationale behind creating the app:\n\n1. [Part 1: Introduction - Writing a modular, and testable iOS App in Swift using MVVM pattern](https://samkhawase.com/blog/mvvm_swift_introduction/)\n2. [Part 2: Defining the Data Model](https://samkhawase.com/blog/mvvm_swift_model/)\n3. [Part 3: The Location provider](https://samkhawase.com/blog/mvvm_swift_location_provider/)\n4. [Part 4: Defining the networking layer](https://samkhawase.com/blog/mvvm_swift_networking/)\n5. [Part 5: The ViewModel](https://samkhawase.com/blog/mvvm_swift_view_model/)\n6. [Part 6: The Final App - Putting it all together](https://samkhawase.com/blog/mvvm_swift_final_app/)\n\n\n\n## Getting Started\n\nHere are the steps to get started with the project on your local machine:\n1. Clone the git repositiory\n2. Run `carthage update --platform iOS --cache-builds --no-use-binaries` to fetch the dependencies.\n3. If running on the simulator, you can edit the scheme and set the simulated location in Xcode. (*E.g. Hongkong*)\n4. Run the project via Xcode.\n\n### Prerequisites\n\nWhat things you need to install the software and how to install them\n\n1. Mac OS X\n2. Xcode 9\n3. [Carthage](https://github.com/Carthage/Carthage) \n4. Optional: [xcpretty](https://github.com/supermarin/xcpretty)\n\n## Running the tests\n\nThe app uses BDD style tests using Quick and Nimble. There are unit tests written to test the LocationManager, APIClient (*with Network mocks*), and ViewModel behaviors. \nTo run the test, enter the command on the command line.\n\n```\nxcodebuild -scheme 'LooLocator' \\\n\t\t\t-sdk iphonesimulator \\\n\t\t\t-configuration Debug \\\n\t\t\t-destination 'platform=iOS Simulator,name=iPhone 6s,OS=latest' \\\n\t\t\ttest | xcpretty\n```\n\nThe output will be similar to \n\n```\nTest Suite LooLocatorTests.xctest started\nApiClientTests\n    ✓ Amenity_Request_tests__should_fetch_amenities (0.027 seconds)\nLocationProviderTests\n    ✓ Given_a_LocationProvider__When_it_s_started_with_LocationManager__then_starts_location_updates (1.547 seconds)\n    ✓ Given_a_LocationProvider__When_it_s_started_with_LocationManager__then_provides_current_location (0.001 seconds)\nMapViewModelTests\n    ✓ Given_a_MapViewModel__get_current_location (0.002 seconds)\n    ✓ Given_a_MapViewModel__should_get_all_amenities_in_range (0.004 seconds)\n``` \n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* This project is inspired by the MapKit article from [RayWenderlich](https://www.raywenderlich.com/160517/mapkit-tutorial-getting-started)\n* The [Overpass Turbo API](https://overpass-turbo.eu/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamkhawase%2Floolocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamkhawase%2Floolocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamkhawase%2Floolocator/lists"}