Exemple #1
0
    def __repr__(self):
        """Self-documenting string representation.

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

        :rtype: ``str``
        :return: String to recreate ``Way`` object
        """
        return utils.repr_assist(self, {'nodes': self[:]})
Exemple #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())})
Exemple #4
0
    def __repr__(self):
        """Self-documenting string representation.

        :rtype: ``str``
        :return: String to recreate ``Point`` object
        """
        return utils.repr_assist(self, {'angle': 'degrees'})
Exemple #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})
Exemple #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})