Home | Trees | Indices | Help |
|
---|
|
object --+ | basestring --+ | str --+ | object --+ | | | named._Named --+ | | | units._NamedUnit --+ | units.Str --+ | Geohash
Geohash class, a named str
.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
Static Methods | |||
a new object with type S, a subtype of T |
|
Properties | |
ab Get the lat- and longitude of (the approximate center of) this geohash as a 2-tuple (lat, lon) in radians .
|
|
latlon Get the lat- and longitude of (the approximate center of) this geohash as a LatLon2Tuple (lat, lon) in
degrees .
|
|
neighbors Get all 8 adjacent cells as a Neighbors8Dict (N, NE, E, SE, S, SW, W,
NW) of Geohashes.
|
|
precision Get this geohash's precision ( int ).
|
|
sizes Get the lat- and longitudinal size of this cell as a LatLon2Tuple (lat, lon) with the
latitudinal height and longitudinal width in (meter ).
|
|
N Get the cell North of this (Geohash). |
|
S Get the cell South of this (Geohash). |
|
E Get the cell East of this (Geohash). |
|
W Get the cell West of this (Geohash). |
|
NE Get the cell NorthEast of this (Geohash). |
|
NW Get the cell NorthWest of this (Geohash). |
|
SE Get the cell SouthEast of this (Geohash). |
|
SW Get the cell SouthWest of this (Geohash). |
|
Inherited from Inherited from Inherited from |
Method Details |
New Geohash from an other Geohash
instance or
|
Determine the adjacent cell in given compass direction.
|
Return the lower-left SW and upper-right NE bounds of this geohash cell.
|
Estimate the distance between this and an other geohash (from the cell sizes). |
Compute the distance between this and an other geohash using the Equirectangular Approximation / Projection.
See Also: Local, flat earth approximation, functions |
Compute the great-circle distance between this and an other geohash using the Haversine formula. |
Return (the approximate center of) this geohash cell as an instance of
the supplied
Example: >>> from sphericalTrigonometry import LatLon >>> ll = Geohash('u120fxw').toLatLon(LatLon) >>> print(repr(ll)) # LatLon(52°12′17.9″N, 000°07′07.64″E) >>> print(ll) # 52.204971°N, 000.11879°E |
Property Details |
abGet the lat- and longitude of (the approximate center of) this geohash
as a 2-tuple (lat, lon) in
|
latlonGet the lat- and longitude of (the approximate center of) this geohash
as a LatLon2Tuple Example: >>> geohash.Geohash('geek').latlon # 65.478515625, -17.75390625 >>> geohash.decode('geek') # '65.48', '-17.75'
|
neighborsGet all 8 adjacent cells as a Neighbors8Dict JSname: neighbours.
|
precisionGet this geohash's precision (
|
sizesGet the lat- and longitudinal size of this cell as a LatLon2Tuple
|
NGet the cell North of this (Geohash).
|
SGet the cell South of this (Geohash).
|
EGet the cell East of this (Geohash).
|
WGet the cell West of this (Geohash).
|
NEGet the cell NorthEast of this (Geohash).
|
NWGet the cell NorthWest of this (Geohash).
|
SEGet the cell SouthEast of this (Geohash).
|
SWGet the cell SouthWest of this (Geohash).
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 12 20:50:00 2020 | http://epydoc.sourceforge.net |