| Trees | Indices | Help |
|
|---|
|
|
object --+
|
point.Point --+
|
trigpoints.Trigpoint --+
|
Location
Class for representing a location from a geonames.org data file
All country codes are specified with their two letter ISO-3166 country code.
Since: 0.3.0
|
|||
|
|||
str
|
|
||
|
Inherited from Inherited from Inherited from |
|||
|
|||
__TIMEZONES = {}dateutil.gettz cache to speed up generation |
|||
|
|||
|
admin1 FIPS code (subject to change to ISO code), ISO code for the US and CH |
|||
|
admin2 Code for the second administrative division, a county in the US |
|||
|
admin3 Code for third level administrative division |
|||
|
admin4 Code for fourth level administrative division |
|||
|
alt_country Alternate country codes for location |
|||
|
alt_names Alternate names for the location |
|||
|
altitude Location's altitude |
|||
|
asciiname Name of geographical location in ASCII encoding |
|||
|
country Location's country |
|||
|
feature_class Location's type |
|||
|
feature_code Location's code |
|||
|
geonameid ID of record in geonames database |
|||
|
gtopo30 Average elevation of 900 square metre region, if available |
|||
|
latitude Location's latitude |
|||
|
longitude Locations's longitude |
|||
|
modified_date Location's last modification date in the geonames databases |
|||
|
name Location's name |
|||
|
population Location's population, if applicable |
|||
|
timezone Location's offset from UTC in minutes |
|||
|
tzname The timezone identifier using POSIX timezone names |
|||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
Initialise a new Location object >>> Location(2636782, "Stotfold", "Stotfold", None, 52.0, -0.2166667, ... "P", "PPL", "GB", None, "F8", None, None, None, 6245, ... None, 77, "Europe/London", datetime.date(2007, 6, 15), 0) Location(2636782, 'Stotfold', 'Stotfold', None, 52.0, -0.2166667, 'P', 'PPL', 'GB', None, 'F8', None, None, None, 6245, None, 77, 'Europe/London', datetime.date(2007, 6, 15), 0)
|
Pretty printed location string >>> Stotfold = Location(2636782, "Stotfold", "Stotfold", None, 52.0, ... -0.2166667, "P", "PPL", "GB", None, "F8", None, ... None, None, 6245, None, 77, "Europe/London", ... datetime.date(2007, 6, 15)) >>> print(Stotfold) Stotfold (N52.000°; W000.217°) >>> print(Stotfold.__str__(mode="dms")) Stotfold (52°00'00"N, 000°13'00"W) >>> print(Stotfold.__str__(mode="dm")) Stotfold (52°00.00'N, 000°13.00'W) >>> Stotfold.alt_names = ["Home", "Target"] >>> print(Stotfold) Stotfold (Home, Target - N52.000°; W000.217°)
See Also: trigpoints.point.Point |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue May 20 12:41:15 2008 | http://epydoc.sourceforge.net |