예제 #1
0
    def h12(lat, lon):
        """Returns h12 identifier corresponding to the given identifier.

        :param lat: latitude
        :type lat: float
        :param lon: longitude
        :type lon: float
        :return: datetime object for that year on the first day at midnight
        """
        return h3.geo_to_h3(lat, lon, 12)
예제 #2
0
def test1():
    assert h3.geo_to_h3(37.7752702151959, -122.418307270836, 9) == '8928308280fffff'