{ "info": { "author": "Aaron Madison", "author_email": "aaron.l.madison@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.2", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Application Frameworks" ], "description": "### \n\n`django-google-maps` is a simple application that provides the basic\nhooks into google maps V3 api for use in Django models from Django\nversion 1.11+. \n\nStarting with `django-google-maps` version (0.7.0), Django 1.11+ is \nrequired because Django changed their widget template rendering system. \nVersion 0.8.0 supports Django 2.0+, and as such removes support for Python 2.7\n\nI'm using this to allow someone from the admin panels to type a\nfreeform address, have the address geocoded on change and plotted\non the map. If the location is not 100% correct, the user can\ndrag the marker to the correct spot and the geo coordinates will\nupdate.\n\n### Status\n[![Build Status](https://travis-ci.org/madisona/django-google-maps.png)](https://travis-ci.org/madisona/django-google-maps)\n\nUSAGE:\n------\n- include the `django_google_maps` app in your `settings.py`\n- Add your Google Maps API Key in your `settings.py` as `GOOGLE_MAPS_API_KEY`\n- create a model that has both an address field and geolocation field\n\n ```python\n from django.db import models\n from django_google_maps import fields as map_fields\n\n class Rental(models.Model):\n address = map_fields.AddressField(max_length=200)\n geolocation = map_fields.GeoLocationField(max_length=100)\n ```\n\n- in the `admin.py` include the following as a formfield_override\n\n ```python\n from django.contrib import admin\n from django_google_maps import widgets as map_widgets\n from django_google_maps import fields as map_fields\n\n class RentalAdmin(admin.ModelAdmin):\n formfield_overrides = {\n map_fields.AddressField: {'widget': map_widgets.GoogleMapsAddressWidget},\n }\n ```\n\n- To change the map type (`hybrid` by default), you can add an html attribute\non the `AddressField` widget. The list of allowed values is: `hybrid`, `roadmap`, `satellite`, `terrain`\n\n ```python\n from django.contrib import admin\n from django_google_maps import widgets as map_widgets\n from django_google_maps import fields as map_fields\n \n class RentalAdmin(admin.ModelAdmin):\n formfield_overrides = {\n map_fields.AddressField: {\n 'widget': map_widgets.GoogleMapsAddressWidget(attrs={'data-map-type': 'roadmap'})},\n }\n ``` \n\nThat should be all you need to get started.\n\nI also like to make the geolocation field readonly in the admin so a user\n(myself) doesn't accidentally change it to a nonsensical value. There is\nvalidation on the field so you can't enter an incorrect value, but you could\nenter something that is not even close to the address you intended.\n\nWhen you're displaying the address back to the user, just request the map\nusing the geocoordinates that were saved in your model. Maybe sometime when\nI get around to it I'll see if I can create a method that will build that\ninto the model.\n\n\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/madisona/django-google-maps", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-google-maps", "package_url": "https://pypi.org/project/django-google-maps/", "platform": "", "project_url": "https://pypi.org/project/django-google-maps/", "project_urls": { "Homepage": "https://github.com/madisona/django-google-maps" }, "release_url": "https://pypi.org/project/django-google-maps/0.11.0/", "requires_dist": null, "requires_python": "", "summary": "Plugs google maps V3 api into Django admin.", "version": "0.11.0" }, "last_serial": 5164438, "releases": { "0.10.0": [ { "comment_text": "", "digests": { "md5": "f1b0208e4872fccbcf6e58f045d645c2", "sha256": "a406877962ad23e71077ff75a8f943c809213f74e340f21c96ec1758bd3f1ff0" }, "downloads": -1, "filename": "django-google-maps-0.10.0.tar.gz", "has_sig": false, "md5_digest": "f1b0208e4872fccbcf6e58f045d645c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7953, "upload_time": "2018-02-15T12:30:12", "url": "https://files.pythonhosted.org/packages/72/66/889ef9c1801e565fbc371a2ecfd3e5153d4d4083288dce2a8cfb430953e7/django-google-maps-0.10.0.tar.gz" } ], "0.10.1": [ { "comment_text": "", "digests": { "md5": "ef78911e2c4ddfb3c253ac52a84e4c2d", "sha256": "96ac80748eb7a9787aa9aab0fbf9ff392e86bc86a44013b507d3b6c76e1b9b33" }, "downloads": -1, "filename": "django-google-maps-0.10.1.tar.gz", "has_sig": false, "md5_digest": "ef78911e2c4ddfb3c253ac52a84e4c2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8608, "upload_time": "2018-02-20T11:58:38", "url": "https://files.pythonhosted.org/packages/d9/e8/9ea526a6cb626aec3d6a2ea7ea4a2f145f14b36a569f9cf9a17efa1c3346/django-google-maps-0.10.1.tar.gz" } ], "0.11.0": [ { "comment_text": "", "digests": { "md5": "e0f21f348a26b4ef77fc3eed896500fc", "sha256": "e1190f0a3644564bed9b1ea9d704cb4fa87c33dd2546ff531534832f73966b0f" }, "downloads": -1, "filename": "django-google-maps-0.11.0.tar.gz", "has_sig": false, "md5_digest": "e0f21f348a26b4ef77fc3eed896500fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8681, "upload_time": "2019-04-19T10:57:30", "url": "https://files.pythonhosted.org/packages/9a/e2/0b549ac267f218253b963d519d1b9697dbbe4a8852cdd001cafa8197277a/django-google-maps-0.11.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e517524afc83f27e718555095f5cc954", "sha256": "988c94e0c14d8d87cba452076607515cb31666dec82271255689850a4ea2c747" }, "downloads": -1, "filename": "django-google-maps-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e517524afc83f27e718555095f5cc954", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7382, "upload_time": "2011-06-27T22:42:09", "url": "https://files.pythonhosted.org/packages/bf/16/3fc14a0b278b9d870282933f77e36ebf204a9b7a008a4620ff1779f8e58f/django-google-maps-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "eecdbf5758a580b760b59cd668e31253", "sha256": "9f5640d9c4036044c5cc270dfce5f67421ec3fa47ef12a8a8242ea7fb28b16e3" }, "downloads": -1, "filename": "django-google-maps-0.2.1.tar.gz", "has_sig": false, "md5_digest": "eecdbf5758a580b760b59cd668e31253", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7462, "upload_time": "2012-01-01T14:30:19", "url": "https://files.pythonhosted.org/packages/86/b3/d4d79aac460d4099b2619bea3cc2403f229b0707b8253541600c056f0478/django-google-maps-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "2a999fda9f8407a4192741c7e1213eed", "sha256": "3eef77eb393280ad10950bf2064011c7848dcb9ad0ebd45038af4ef9b0177114" }, "downloads": -1, "filename": "django-google-maps-0.2.2.tar.gz", "has_sig": false, "md5_digest": "2a999fda9f8407a4192741c7e1213eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7478, "upload_time": "2012-12-14T02:41:22", "url": "https://files.pythonhosted.org/packages/21/b3/eb0cb5be436b3c6210157cfd8caf3683db6bdf2468236ece0829f2f5de73/django-google-maps-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "41fb569a15706a1797e966e8c1e375b2", "sha256": "3006dac60b14a7784d799bba5e5a0223435bd3328d5ea4bd7a43c4cb90f64c95" }, "downloads": -1, "filename": "django-google-maps-0.2.3.tar.gz", "has_sig": false, "md5_digest": "41fb569a15706a1797e966e8c1e375b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7451, "upload_time": "2014-02-13T13:09:37", "url": "https://files.pythonhosted.org/packages/b8/be/4ac042c0cc0728b5f9733d2c4c29d074960547903c24990ae5140ee9aa8b/django-google-maps-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "c90c48c07f5deffb4d283b1301c37d4a", "sha256": "9fb3acec9a77fb8a7e41468e37b1ea3362593b431f42efc76b770c7393959216" }, "downloads": -1, "filename": "django-google-maps-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c90c48c07f5deffb4d283b1301c37d4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7037, "upload_time": "2015-04-09T11:25:09", "url": "https://files.pythonhosted.org/packages/82/8b/a3303c1a8290b08fc7fccdad846a77627791e32a2ae6fd7bac6799cd7a5e/django-google-maps-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "08cfb844286152cb88fa481cb4af9f9e", "sha256": "7b0d8b2e7cd6a60caea1bbfa5d50bc608e3d52d6f57839c739e2a8749672fffc" }, "downloads": -1, "filename": "django-google-maps-0.4.0.tar.gz", "has_sig": false, "md5_digest": "08cfb844286152cb88fa481cb4af9f9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7057, "upload_time": "2016-07-05T18:52:12", "url": "https://files.pythonhosted.org/packages/0e/9b/b0f39ce7f05fbbe3492383da32056a5f0a320f055b4fdffa0e7a12c0ac62/django-google-maps-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "9451caaf09225702783e98816be8b11b", "sha256": "95c289f18073367f12d8cfb41232c43c2fcde159636bb1d1e04ae46fb39c6a14" }, "downloads": -1, "filename": "django-google-maps-0.5.0.tar.gz", "has_sig": false, "md5_digest": "9451caaf09225702783e98816be8b11b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7105, "upload_time": "2016-08-12T17:03:25", "url": "https://files.pythonhosted.org/packages/91/6e/f29f1ae4f2ed42bc3705467d657ff03bd274b090b98a20575a57bff76584/django-google-maps-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "d72d2c4c924ec241f869d1f888c0f7e5", "sha256": "a5c26dffc715a7c284070798368543d2d6d2919464876f9b0fefb4fb68048937" }, "downloads": -1, "filename": "django-google-maps-0.6.0.tar.gz", "has_sig": false, "md5_digest": "d72d2c4c924ec241f869d1f888c0f7e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6912, "upload_time": "2016-11-28T14:43:18", "url": "https://files.pythonhosted.org/packages/18/ff/993eaeff50bc30c7056db5a52fe2cfd01de49e440d54b2673e9279beb00a/django-google-maps-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "3a72c4dc5362b98ca21357c7942a1c78", "sha256": "976945ceece0c8c981fdc567b6aad23d9673bd5521041ad8c590f8a78b47209a" }, "downloads": -1, "filename": "django-google-maps-0.7.0.tar.gz", "has_sig": false, "md5_digest": "3a72c4dc5362b98ca21357c7942a1c78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6895, "upload_time": "2017-04-10T13:38:06", "url": "https://files.pythonhosted.org/packages/75/2c/efb8dea0810a66a4da3f6365d9db5d0444d561009a93078997a009c25383/django-google-maps-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "2c5f46a94b6c2f6676ff6acd7352b62f", "sha256": "417be256d0da154ace72ff2d1bf4cfe2f90fcb5dea0dda8dc6f9802f0b05204d" }, "downloads": -1, "filename": "django-google-maps-0.8.0.tar.gz", "has_sig": false, "md5_digest": "2c5f46a94b6c2f6676ff6acd7352b62f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7324, "upload_time": "2018-01-13T02:39:19", "url": "https://files.pythonhosted.org/packages/21/cf/570e6ae4360ce98c4bdd1da24ec3a932fa62395b99d7c385d0e8353c010c/django-google-maps-0.8.0.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "fc27ef053bafbea9997cff7fec42ffe5", "sha256": "8beb7455be0c50bb48622d02da4dd779fa542d2b4dbdbe0ca3422d7b650bb0df" }, "downloads": -1, "filename": "django-google-maps-0.9.0.tar.gz", "has_sig": false, "md5_digest": "fc27ef053bafbea9997cff7fec42ffe5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7684, "upload_time": "2018-01-19T21:52:18", "url": "https://files.pythonhosted.org/packages/e8/50/b47164e9ae6689d880c11a0c4aadb352d4522ae38a877c3de2a238f0dcf2/django-google-maps-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e0f21f348a26b4ef77fc3eed896500fc", "sha256": "e1190f0a3644564bed9b1ea9d704cb4fa87c33dd2546ff531534832f73966b0f" }, "downloads": -1, "filename": "django-google-maps-0.11.0.tar.gz", "has_sig": false, "md5_digest": "e0f21f348a26b4ef77fc3eed896500fc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8681, "upload_time": "2019-04-19T10:57:30", "url": "https://files.pythonhosted.org/packages/9a/e2/0b549ac267f218253b963d519d1b9697dbbe4a8852cdd001cafa8197277a/django-google-maps-0.11.0.tar.gz" } ] }