[web2py] Re: has anyone done web2py + google maps?
There's this plugin: https://groups.google.com/d/topic/web2py/4RFAudXbt3s/discussion. Also, plugin_wiki includes a Google Maps widget similar to that plugin (http://web2py.com/book/default/chapter/13#Current-Widgets). There's also https://github.com/relsi/web2pyople (see it running here: http://web2pyople.appspot.com/). Anthony On Saturday, September 10, 2011 1:47:53 AM UTC-4, niknok wrote: Any links to try out?
Re: [web2py] Re: has anyone done web2py + google maps?
I'm a Python Web Dev noob, but I had a similar requirement. I created this function to convert a postcode into lon lat data suitable for use in Google Maps. It's a work in progress, not very elegant, and it doesn't have any error management but it's a start. Hopefully someone on the list will be able to point out any serious problems with it if there are any ;-) import urllib import xml.dom.minidom Returns latitude and longitude when passed a postcode geocodeUrl='http://maps.googleapis.com/maps/api/geocode/xml?address=' sensor='sensor=false' #send the postcode to Google for geocoding dom=xml.dom.minidom.parse(urllib.urlopen(geocodeUrl+address+sensor)) #grab the location element location=dom.getElementsByTagName('location')[0] #pull out the lat lng elements and remove the lat lng tags lat=location.getElementsByTagName('lat')[0].toxml().replace('lat','').replace('/lat','') lng=location.getElementsByTagName('lng')[0].toxml().replace('lng','').replace('/lng','') georesults = {'lat':lat, 'lng':lng} return georesults
[web2py] Re: has anyone done web2py + google maps?
You might want to check out Public Radio Roadtrip an application done (in progress?) by John Tynan. It was still slightly rough around the edges the last time I tried it out but was looking really interesting and was exploring some really interesting ideas. *Public Radio Roadtrip* GAE test site http://publicradioroadtrip.appspot.com/publicradioroadtrip Get the Code here http://code.google.com/p/publicradioroadtrip/ John's Blog http://p2pu.org/en/johntynan/ John also did an application for public radio funding campaigns...
[web2py] Re: has anyone done web2py + google maps?
Thank you all for the responses and links. They are very good models to learn from. Has anyone done something similar to crimereports.com or haybol.ph? On Sep 11, 7:09 am, Christopher Steel chris.st...@gmail.com wrote: You might want to check out Public Radio Roadtrip an application done (in progress?) by John Tynan. It was still slightly rough around the edges the last time I tried it out but was looking really interesting and was exploring some really interesting ideas. *Public Radio Roadtrip* GAE test site http://publicradioroadtrip.appspot.com/publicradioroadtrip Get the Code here http://code.google.com/p/publicradioroadtrip/ John's Blog http://p2pu.org/en/johntynan/ John also did an application for public radio funding campaigns...