Exemple #1
0
	def get_by_address(address, create):
		location = Location.all().filter('address=', address).get()

		# add the location to the database if it dosen't already exist
		if location is None and create:
			location = Location(
				address = address,
				geo_point = GoogleMaps.get_geo_point(address)
			)
		location.put()

		return location