Esempio n. 1
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``NumberedPoints`` object
        """
        return utils.repr_assist(self, {"locations": self[:]})
Esempio n. 2
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``Way`` object
        """
        return utils.repr_assist(self, {'nodes': self[:]})
Esempio n. 3
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``KeyedPoints`` object
        """
        return utils.repr_assist(self, {'points': dict(self.items())})
Esempio n. 4
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``Point`` object
        """
        return utils.repr_assist(self, {'angle': 'degrees'})
Esempio n. 5
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``Zone`` object
        """
        location = utils.to_iso6709(self.latitude, self.longitude, format="dms")[:-1]
        return utils.repr_assist(self, {"location": location})
Esempio n. 6
0
    def __repr__(self):
        """Self-documenting string representation

        >>> Zone("+513030-0000731", 'GB', "Europe/London")
        Zone('+513030-0000730', 'GB', 'Europe/London', None)

        :rtype: ``str``
        :return: String to recreate ``Zone`` object

        """
        location = utils.to_iso6709(self.latitude, self.longitude,
                                    format="dms")[:-1]
        return utils.repr_assist(self, {"location": location})