{"id":26572946,"url":"https://github.com/kingsdigitallab/django-geonames-place","last_synced_at":"2025-03-23T00:36:47.055Z","repository":{"id":57420234,"uuid":"157725432","full_name":"kingsdigitallab/django-geonames-place","owner":"kingsdigitallab","description":"Application to access and store Geonames Places in Django projects","archived":false,"fork":false,"pushed_at":"2022-12-26T20:38:48.000Z","size":45,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-11T19:45:58.369Z","etag":null,"topics":["django","geocoding","reusable"],"latest_commit_sha":null,"homepage":null,"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/kingsdigitallab.png","metadata":{"files":{"readme":"README.rst","changelog":"HISTORY.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-15T14:36:33.000Z","updated_at":"2021-10-25T14:37:57.000Z","dependencies_parsed_at":"2023-01-31T01:30:50.484Z","dependency_job_id":null,"html_url":"https://github.com/kingsdigitallab/django-geonames-place","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsdigitallab%2Fdjango-geonames-place","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsdigitallab%2Fdjango-geonames-place/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsdigitallab%2Fdjango-geonames-place/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsdigitallab%2Fdjango-geonames-place/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kingsdigitallab","download_url":"https://codeload.github.com/kingsdigitallab/django-geonames-place/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040207,"owners_count":20551299,"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":["django","geocoding","reusable"],"created_at":"2025-03-23T00:36:46.313Z","updated_at":"2025-03-23T00:36:47.037Z","avatar_url":"https://github.com/kingsdigitallab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\nDjango Geonames Place\n=====================\n\n.. image:: https://travis-ci.org/kingsdigitallab/django-geonames-place.svg?branch=master\n        :target: https://travis-ci.org/kingsdigitallab/django-geonames-place\n\n.. image:: https://codecov.io/gh/kingsdigitallab/django-geonames-place/branch/master/graph/badge.svg\n        :target: https://codecov.io/gh/kingsdigitallab/django-geonames-place\n\nApplication to access Geonames Places directly from Django.\nThe application can create places by using a geonames id or by using a search\naddress.\n\nThis application depends on the very useful\n`Python Geocoder \u003chttps://geocoder.readthedocs.io/index.html\u003e`_ library.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-geonames-place.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django Geonames Place::\n\n    pip install django-geonames-place\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        ...\n        'geonames_place.apps.GeonamesPlaceConfig',\n        ...\n    )\n\nAdd the settings `GEONAMES_KEY` and `GEONAMES_MAX_RESULTS`. The `GEONAMES_KEY`\nis your Geoname API key, and the `GEONAMES_MAX_RESULTS` is used to set the\nmaximum number of results when searching Geonames.\n\n.. code-block:: python\n\n    GEONAMES_KEY = '\u003cGEONAMES_USERNAME\u003e'\n    GEONAMES_MAX_RESULTS = 10\n\nTo reference Geonames Place in your models:\n\n.. code-block:: python\n\n    from django.db import models\n    from geonames_place.models import Place\n\n\n    class MyModel(models.Model):\n        ...\n        place = models.ForeignKey(Place, on_delete=models.CASCADE)\n        ...\n\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n    export GEONAMES_KEY=\u003cGEONAMES_USERNAME\u003e\n    source \u003cYOURVIRTUALENV\u003e/bin/activate\n    (myenv) $ pip install tox\n    (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n*  Cookiecutter_\n*  `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsdigitallab%2Fdjango-geonames-place","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingsdigitallab%2Fdjango-geonames-place","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsdigitallab%2Fdjango-geonames-place/lists"}