Commits

Xiao Yu  committed dd4e74f

command line returns

  • Participants
  • Parent commits 7cb4c24
  • Tags 1.1.4

Comments (0)

Files changed (3)

 ==============
-pygeocoder 1.1.3
+pygeocoder 1.1.4
 ==============
 Xiao Yu
-and
 Sébastien Fievet
+Marius Grigaitis
 19/03/2010
 
 *Based on googlemaps 1.0.2 by John Kleint*
 
 Changelog
 ---------
+Version 1.1.4
+Fixed UTF-8 and facilitated command line usage
+
 Version 1.1.3
 Made Geocoder methods static method while backward compatible
 

File pygeocoder.py

 	import simplejson as json
 
 
-VERSION = '1.1.3'
+VERSION = '1.1.4'
 __all__ = ['Geocoder', 'GeocoderError', 'GeocoderResult']
 
 # this decorator lets me use methods as both static and instance methods
 			sys.exit(1)
 		
 		print result
-		print
-			
-		import pprint
-		pprint.PrettyPrinter().pprint(result.raw)
-	
+		print result.coordinates	
 	main()
 		self.assertEqual(result.formatted_address, '1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA')
 		self.assertEqual(result.valid_address, True)
 		lat, lng = result.coordinates
-		self.assertAlmostEquals(lat, 37.4228327, 3)
+		self.assertAlmostEquals(lat, 37.4213068, 3)
 		self.assertAlmostEquals(lng, -122.0850778, 3)
 
 		(lat2, lng2) = g.address_to_latlng(addr)
 		self.assertAlmostEquals(lng, lng2, 3)
 		
 		self.assertTrue(result.count > 1)
-		self.assertEqual(result[1].formatted_address, 'Williamsburg, Brooklyn, NY, USA')
+		self.assertEqual(result[1].formatted_address, 'Williamsburg, NY, USA')
 
 		addr2 = Geocoder.latlng_to_address(lat, lng)
 		self.assertEqual(addr, addr2)