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)
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)