djangosnippets.org: Latest snippets posted by samhaghttps://djangosnippets.org/users/samhag/2012-10-31T19:32:30.458700-05:00samhagtemplate code for "Google v3 geocoding for Geodjango admin site"
2012-10-31T19:32:30.458700-05:00samhaghttps://djangosnippets.org/snippets/2840/<p>Html code for <a href="http://djangosnippets.org/snippets/2839/">"Google v3 geocoding for Geodjango admin site"</a>
Rename the snippet as gmgdav3.html and save it to template/admin</p>
Freely redistributableGoogle v3 geocoding for Geodjango admin site
2012-10-31T19:26:22.038206-05:00samhaghttps://djangosnippets.org/snippets/2839/<p>This only works with Point geometry.
<a href="http://www.youtube.com/watch?v=gZ7_n177sTE&list=HL1351725584&feature=mh_lolz">video</a></p>
<p>Rename the snippet as gmgdav3.js and save it to template/admin with <a href="http://djangosnippets.org/snippets/2840/">gmgdav3.html</a></p>
<ul>
<li>
<ul>
<li><em>models.py</em>:</li>
</ul>
</li>
</ul>
<p><code>from django.contrib.gis.db import models</code> <br />
<code>class point(models.Model):</code> <br />
<code>address = models.CharField(max_length=100, help_text='Press "Tab" to refresh the map')</code> <br />
<code>longitude = models.FloatField(help_text='WGS84 Decimal Degree. Press "Tab" to refresh the map')</code> <br />
<code>latitude = models.FloatField(help_text='WGS84 …</code></p>
Freely redistributable