Re: Django point field

2009-09-25 Thread please smile
Thanks a lot Nabil servais. its works for me too On Fri, Sep 25, 2009 at 2:06 PM, Nabil Servais wrote: > > Hello, > > I use json for output instead of cvs, and it works. Also I convert the > lattitude and longitude into float. > > enjoy > > def get_lat_long(location): > key = settings

Re: Django point field

2009-09-25 Thread Nabil Servais
Hello, I use json for output instead of cvs, and it works. Also I convert the lattitude and longitude into float. enjoy def get_lat_long(location): key = settings.GOOGLE_API_KEY output = "json" location = urllib.quote_plus(location) request = "http://maps.g

Re: Django point field

2009-09-25 Thread Nabil Servais
Hello, I solve your probleme in changing the output format into json, then I convert the coordinates into Float. def get_lat_long(location): key = '' output = "json" location = urllib.quote_plus(location) request = "http://maps.google.com/maps/geo?q=%s&output=%s";

Django point field

2009-09-25 Thread please smile
Hi all, I have a problem to convert latitude and longitude values into point field value. def get_lat_long(location): key = settings.GOOGLE_API_KEY output = "csv" location = urllib.quote_plus(location) request = "http://maps.google.com/maps/geo?q=%s&output=