{"id":15563068,"url":"https://github.com/dkam/locate_by_ip","last_synced_at":"2025-03-29T05:13:00.927Z","repository":{"id":655481,"uuid":"298150","full_name":"dkam/locate_by_ip","owner":"dkam","description":"Small web app to serving location based on IP address","archived":false,"fork":false,"pushed_at":"2009-09-05T06:40:40.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-03T14:48:29.896Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/dkam.png","metadata":{"files":{"readme":"README","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":"2009-09-05T03:38:20.000Z","updated_at":"2013-10-15T15:29:54.000Z","dependencies_parsed_at":"2022-07-17T00:30:48.060Z","dependency_job_id":null,"html_url":"https://github.com/dkam/locate_by_ip","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Flocate_by_ip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Flocate_by_ip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Flocate_by_ip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkam%2Flocate_by_ip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkam","download_url":"https://codeload.github.com/dkam/locate_by_ip/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246140591,"owners_count":20729802,"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":[],"created_at":"2024-10-02T16:17:19.618Z","updated_at":"2025-03-29T05:13:00.908Z","avatar_url":"https://github.com/dkam.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Locate By IP is a simple little Sinatra app. You put the IP address you want to locate in the URL and it returns the location via XML\n\ndkam@Omena ~/Development/ip_location (master) $ curl \"http://localhost:4569/203.217.72.134\"\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003cip-group-city\u003e\n  \u003ccity\u003eNunawading\u003c/city\u003e\n  \u003ccountry-code\u003eAU\u003c/country-code\u003e\n  \u003ccountry-name\u003eAustralia\u003c/country-name\u003e\n  \u003cdstOffset\u003e10.0\u003c/dstOffset\u003e\n  \u003cgmtOffset\u003e11.0\u003c/gmtOffset\u003e\n  \u003cip-start type=\"integer\"\u003e3420014592\u003c/ip-start\u003e\n  \u003clatitude type=\"float\"\u003e-37.8167\u003c/latitude\u003e\n  \u003clongitude type=\"float\"\u003e145.167\u003c/longitude\u003e\n  \u003cregion-code\u003e07\u003c/region-code\u003e\n  \u003cregion-name\u003eVictoria\u003c/region-name\u003e\n  \u003czipcode\u003e\u003c/zipcode\u003e\n\u003c/ip-group-city\u003e\n\nGrab the data from here: http://ipinfodb.com/ip_database.php\nYou're after the \"Complete (City)\" with one table.\n\nLoad the data with:\n  mysql -u \u003cuser\u003e -p \u003cdatabasename\u003e \u003c ipinfodb_one_table_full.sql\n\n\nI got the idea for this from this site: \n http://blog.makezine.com/archive/2009/03/free_unlimited_ip_address_geolocati.html?CMP=OTC-0D6B48984890","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkam%2Flocate_by_ip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkam%2Flocate_by_ip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkam%2Flocate_by_ip/lists"}