{"id":16691692,"url":"https://github.com/michael-spengler/location","last_synced_at":"2025-04-10T01:05:21.920Z","repository":{"id":56591405,"uuid":"276715951","full_name":"michael-spengler/location","owner":"michael-spengler","description":"🦕    Module to get Location Data - e.g. for IP Adresses or for Cities e.g. on earth 🌍 or on mars 🚀👩‍🚀👯‍♀️🛰🌌","archived":false,"fork":false,"pushed_at":"2023-12-28T17:00:31.000Z","size":18,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:43:51.799Z","etag":null,"topics":["geolocation","iplocation"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/michael-spengler.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}},"created_at":"2020-07-02T18:12:46.000Z","updated_at":"2024-04-19T07:38:59.000Z","dependencies_parsed_at":"2022-08-15T21:31:21.805Z","dependency_job_id":null,"html_url":"https://github.com/michael-spengler/location","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-spengler%2Flocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-spengler%2Flocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-spengler%2Flocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michael-spengler%2Flocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michael-spengler","download_url":"https://codeload.github.com/michael-spengler/location/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":["geolocation","iplocation"],"created_at":"2024-10-12T16:09:32.941Z","updated_at":"2025-04-10T01:05:21.896Z","avatar_url":"https://github.com/michael-spengler.png","language":"TypeScript","readme":"# Location Module\n\n## Usage example for your code\n\n```\n\nimport { IPLocationService } from \"https://deno.land/x/location/iplocationservice.ts\"\nimport { CityLocationService } from \"https://deno.land/x/location/citylocationservice.ts\"\n\n\nconst ip = '49.12.6.159'\nconst ipLocation = await IPLocationService.getIPLocation(ip)\n\nconsole.log(`\\nI found the following location for ip ${ip}: \\n${JSON.stringify(ipLocation)}\\n`)\n\n\n\nconst countryCode = 'DE'\nconst cityName = 'Heidelberg'\nconst cityLocation = await CityLocationService.getCityLocation(countryCode, cityName)\n\nconsole.log(`The city you asked for is about here: \\n${JSON.stringify(cityLocation)}\\n`)\n\n```\n\n## Test it via command line\n\n```\n\ndeno run --allow-net --allow-read https://deno.land/x/location/usage-examples.ts\n\n```\n\n## Get 3 Words representation of Latitude and Longitude\n\n```sh\n\ndeno run --allow-net https://deno.land/x/location/get-three-words-location.ts yourW3WAPIKey\n\n```\n\n## Contributions are welcome\n\nFeel free to create a pull request if you would like to improve things.\n\n## Donations\nThanks to [Freedom Cash](https://FreedomCash.org), we are already free.  \nIf you want to donate, you might consider donating to the [otherparty.co.uk](https://www.otherparty.co.uk/donate-crypto-the-other-party) to ensure people do not need to donate to victims but rather donate successfully to problem solvers.   \n  \n![direct-democracy](https://github.com/michael-spengler/sleep/assets/145258627/fe97b7da-62b4-4cf6-9be0-7b03b2f3095a)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-spengler%2Flocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichael-spengler%2Flocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichael-spengler%2Flocation/lists"}