geometry.py

changeset 19
16fa9fb20b32
parent 7
f3791dccfd03
child 88
3b86597c5a88
--- a/geometry.py	Sat Jun 10 21:09:11 2017 +0300
+++ b/geometry.py	Sat Jun 10 22:30:55 2017 +0300
@@ -18,6 +18,9 @@
 	@property
 	def y(self):
 		return self.pituus
+	@property
+	def link_to_map(self):
+		return 'http://www.openstreetmap.org/#map=19/%f/%f' % (self.leveys, self.pituus)
 
 class Rengas:
 	def __init__(tämä, säiliö):

mercurial