{"id":21288714,"url":"https://github.com/abdo-essam/cityfinder","last_synced_at":"2025-07-07T02:33:02.579Z","repository":{"id":251999537,"uuid":"839093097","full_name":"abdo-essam/CityFinder","owner":"abdo-essam","description":"A basic city finder app.  The user can search for cities and clicking on a city opens Google Maps and navigates to that city's location.","archived":false,"fork":false,"pushed_at":"2024-08-08T19:53:38.000Z","size":5075,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T09:53:10.218Z","etag":null,"topics":["google-maps","gson","mvvm-architecture","search-algorithm","trie-data-structure"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/abdo-essam.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":"2024-08-07T00:41:50.000Z","updated_at":"2024-08-08T19:59:45.000Z","dependencies_parsed_at":"2024-11-21T12:39:04.064Z","dependency_job_id":null,"html_url":"https://github.com/abdo-essam/CityFinder","commit_stats":null,"previous_names":["abdo-essam/cityfinder"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abdo-essam/CityFinder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FCityFinder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FCityFinder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FCityFinder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FCityFinder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdo-essam","download_url":"https://codeload.github.com/abdo-essam/CityFinder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdo-essam%2FCityFinder/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264001958,"owners_count":23542351,"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":["google-maps","gson","mvvm-architecture","search-algorithm","trie-data-structure"],"created_at":"2024-11-21T12:24:06.914Z","updated_at":"2025-07-07T02:33:02.515Z","avatar_url":"https://github.com/abdo-essam.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# City Finder\n\nCity Finder is an Android application that allows users to search for cities and view their locations on Google Maps. This project is designed to evaluate problem-solving skills, UX judgment, and code quality.\n\n## Features\n\n- Load a list of cities from a JSON file.\n- Filter results by a given prefix string.\n- Display cities in a scrollable list, in alphabetical order.\n- Show city and country code as the title.\n- Show coordinates as a subtitle.\n- Show the location of the city on Google Maps when tapped.\n\n## Data Structure and Search Algorithm\n### Trie Data Structure\n\nThe Trie (prefix tree) data structure is used to optimize the search functionality. This allows for efficient prefix-based searches, making the application responsive even with a large dataset of cities.\n\nWhy Trie?\n- Efficient Searches: The search time complexity is O(m), where m is the length of the search prefix.\n- Memory Usage: The Trie is space-efficient as common prefixes are stored once.\n\n## Screenshots\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/abdo-essam/CityFinder/blob/master/screenshots/1.jpg\" width=\"250\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/abdo-essam/CityFinder/blob/master/screenshots/2.jpg\" width=\"250\"\u003e\u003c/td\u003e\n    \u003ctd\u003e\u003cimg src=\"https://github.com/abdo-essam/CityFinder/blob/master/screenshots/3.jpg\" width=\"250\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Fcityfinder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdo-essam%2Fcityfinder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdo-essam%2Fcityfinder/lists"}