Ejemplo n.º 1
0
 def render(self, context):
     api = Yandexapi(API_KEY)
     point = Point(self.__latitude, self.__longitude)
     url = Yandexapi.getStaticMapUrlParams(point, self.__width, self.__height, self.__mode)
     return '<img src=%s width=%s height=%s/>' % (url, self.__width, self.__height)
Ejemplo n.º 2
0
 def render(self, context):
     api = Yandexapi(API_KEY)
     point = api.geocode(self.__address)
     url = Yandexapi.getStaticMapUrlParams(point, self.__width, self.__height, self.__mode)
     return '<img src=%s width=%s height=%s/>' % (url, self.__width, self.__height)