{"id":16299694,"url":"https://github.com/dcwatson/django-places","last_synced_at":"2025-04-09T21:29:00.156Z","repository":{"id":8965889,"uuid":"10706901","full_name":"dcwatson/django-places","owner":"dcwatson","description":"A django model for US census place information.","archived":false,"fork":false,"pushed_at":"2013-06-15T13:58:30.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T13:48:03.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dcwatson.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":"2013-06-15T13:52:31.000Z","updated_at":"2014-06-19T06:20:53.000Z","dependencies_parsed_at":"2022-09-22T12:50:29.288Z","dependency_job_id":null,"html_url":"https://github.com/dcwatson/django-places","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/dcwatson%2Fdjango-places","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-places/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-places/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcwatson%2Fdjango-places/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcwatson","download_url":"https://codeload.github.com/dcwatson/django-places/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248114250,"owners_count":21050004,"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-10T20:49:10.170Z","updated_at":"2025-04-09T21:29:00.130Z","avatar_url":"https://github.com/dcwatson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-places\n=============\n\nA django model for US census place information.\nTo populate the database, download the places file from:\n\nhttp://www.census.gov/geo/maps-data/data/gazetteer2010.html\n\nThen run the following command:\n\n./manage.py loadplaces \u003cplaces_file\u003e\n\nFinding Places\n==============\n\nPlace.objects.nearby(lat, lon, radius)\n\tReturns a queryset of Places within the given radius of lat/lon.\n\nPlace.objects.closest(lat, lon, radius)\n\tReturns the closest Place and the distance to the lat/lon, within\n\tthe given radius.\n\nPlace.distance_to(place)\nPlace.distance_to(lat, lon)\n\tReturns the distance in miles between a Place and another Place\n\tor lat/lon coordinates.\n\nPlaceManager\n============\n\nYou can use the PlaceManager in places.managers with any model that has\ndecimal fields named \"longitude\" and \"latitude\".\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcwatson%2Fdjango-places","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcwatson%2Fdjango-places","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcwatson%2Fdjango-places/lists"}