{"id":21739396,"url":"https://github.com/ihefty/location-tracker","last_synced_at":"2025-03-21T00:44:39.698Z","repository":{"id":260925069,"uuid":"882731107","full_name":"IHEfty/Location-Tracker","owner":"IHEfty","description":"A Python tool that retrieves location details from a phone number, including coordinates and a map view.","archived":false,"fork":false,"pushed_at":"2024-11-04T10:27:30.000Z","size":8,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T21:26:26.800Z","etag":null,"topics":["location-tracker","number-location-tracker","python-tracker","tacker","track","tracking"],"latest_commit_sha":null,"homepage":"","language":"Python","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/IHEfty.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-11-03T16:03:16.000Z","updated_at":"2025-01-16T08:18:23.000Z","dependencies_parsed_at":"2025-01-25T21:23:43.424Z","dependency_job_id":"6e74f2bd-6a90-41ef-ba04-b19db12fbdfb","html_url":"https://github.com/IHEfty/Location-Tracker","commit_stats":null,"previous_names":["ihefty/location-tracker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IHEfty%2FLocation-Tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IHEfty%2FLocation-Tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IHEfty%2FLocation-Tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IHEfty%2FLocation-Tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IHEfty","download_url":"https://codeload.github.com/IHEfty/Location-Tracker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717337,"owners_count":20498283,"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":["location-tracker","number-location-tracker","python-tracker","tacker","track","tracking"],"created_at":"2024-11-26T06:08:44.138Z","updated_at":"2025-03-21T00:44:39.448Z","avatar_url":"https://github.com/IHEfty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phone Number Location Tracker\n\nThis Python project allows users to input a phone number and retrieves location information associated with that number. It utilizes the `phonenumbers` library for parsing phone numbers, the OpenCage Geocoder for obtaining geographical coordinates, and the Google Maps API for retrieving detailed addresses and generating a map.\n\n## Features\n\n- Parse and validate phone numbers.\n- Retrieve the location description and service provider for a given phone number.\n- Obtain geographical coordinates (latitude and longitude) of the location.\n- Use Google Maps API to get a detailed address.\n- Generate a map with a marker indicating the location.\n- Save the map to an HTML file for easy viewing.\n\n## Requirements\n\n- Python 3.x\n- `phonenumbers` library\n- `folium` library\n- `requests` library\n- `opencage` library\n\nYou can install the required libraries using pip:\n\n```bash\npip install phonenumbers \npip install folium \npip install requests \npip install opencage \n```\n\n## Setup\n\n1. **Obtain API Keys:**\n   - Sign up at [OpenCage](https://opencagedata.com/) to get your OpenCage API key.\n   - Sign up for a Google Cloud account and enable the Google Maps Geocoding API to obtain your Google Maps API key.\n\n2. **Update the Script:**\n   - Replace the `key` variable in the script with your OpenCage API key.\n   - Replace the `google_maps_key` variable with your Google Maps API key.\n\n## Usage\n\nRun the script in your terminal:\n\n```bash\npython track.py\n```\n\nYou will be prompted to enter a phone number. The script will output:\n\n- The location description.\n- The service provider.\n- The latitude and longitude of the location.\n- The detailed address.\n- A link to view the location on Google Maps.\n- A saved HTML file (`location.html`) containing a map with the location marked.\n\n### Example Input\n```\nPlease give your number: +880123456****\n```\n\n### Example Output\n```\nLocation description: Dhaka, Bangladesh\nService provider: Grameenphone\nLatitude: 23.8103\nLongitude: 90.4125\nDetailed Address: 123 Example St, Dhaka, Bangladesh\nView location on Google Maps: https://www.google.com/maps/@23.8103,90.4125,15z\nLocation tracking completed\n```\n\n## Acknowledgements\n\n- Special thanks to [Ryan Okamuro](https://gist.github.com/RyanOkamuro/3829cde1b7db51a739c7ca5f11055c54#file-gistfile1-txt) for sharing the Google Maps API setup information.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n\u003c!-- 78f7a0f7a7ef453a97613c548b2dee8a --\u003e \u003c!-- \u003e Wooh you can use this --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihefty%2Flocation-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihefty%2Flocation-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihefty%2Flocation-tracker/lists"}