[Edu-sig] notes from django con

kirby urner kirby.urner at gmail.com
Fri Sep 11 01:14:16 CEST 2009


On Wed, Sep 9, 2009 at 10:26 PM, kirby urner<kirby.urner at gmail.com> wrote:

<< snip >>

> Anyway, it's all way cool and math related.  GIS is all about
> polygons.  If you're a math teacher looking for applications, here
> they are.  But then a school needs strong IT to move into these areas.
>  Who on faculty wants to take this on?  This is knowledge to pass
> directly to students, not hide behind curtains.  If you use computers,
> you need to learn how to control them.  That's part of what the new
> literacy entails, per R0ml, so if the math teachers refuse, maybe the
> language teachers will take it on.

In our Beaverton school district, admin is working to give all middle
schoolers a public school email address.  These tend to be needed to
sign up for web services, such as Google's.

By high school, it's easier to assume that students have their own
email addresses, although a school default might also be provided?
Just had the one conversation at Pauling House the other week...

So here's a way to do geolocating *without* needing a Google ID number
(linked to your Google account or domain):

>>> import geopy

>>> g = geopy.geocoders.Google(resource='maps')

>>> g.geocode("3745 SE Harrison St., Portland, OR  97214")
Fetching http://maps.google.com/maps?q=3745+SE+Harrison+St.%2C+Portland%2C+OR++97214&output=kml...
(u'3745 SE Harrison St, Portland, OR 97214', (45.509005999999999,
-122.62473900000001))

>>> from geopy import distance

>>> _, pdx = g.geocode("Portland, Oregon")
Fetching http://maps.google.com/maps?q=Portland%2C+Oregon&output=kml...

>>> _, la = g.geocode("Los Angeles, CA")
Fetching http://maps.google.com/maps?q=Los+Angeles%2C+CA&output=kml...

>>> geopy.distance.distance(pdx, la).miles
825.42617068777872

Kirby


More information about the Edu-sig mailing list