![]() |
NDEVR
API Documentation
|
Provides lookup of US zip codes and their geographic coordinates as a dataset. More...
Public Member Functions | |
| virtual Dataset * | child (const String &name) override |
| Returns the child dataset matching the given name. | |
| virtual uint04 | childCount () const override |
| Returns the number of child datasets. | |
| virtual Buffer< Dataset * > | children () override |
| Returns the list of child datasets. | |
| virtual String | name () const override |
| Returns the dataset name identifier. | |
| virtual bool | setupModel (Model &model) override |
| Sets up a model with zip code data. | |
| Public Member Functions inherited from Dataset | |
| virtual | ~Dataset () |
| Destructor. | |
| virtual Bounds< 3, fltp08 > | bounds () const |
| Returns the 3D spatial bounding box of this dataset. | |
| virtual TranslatedString | description () const |
| Returns a translated description of this dataset. | |
| virtual String | icon () const |
| Returns the icon resource name associated with this dataset. | |
| virtual TranslatedString | title () const |
| Returns the user-facing translated title of this dataset. | |
Static Public Member Functions | |
| static Vertex< 2, fltp08 > | Coordinate (uint04 zip_code) |
| Returns the geographic coordinate (latitude, longitude) for a US zip code. | |
Provides lookup of US zip codes and their geographic coordinates as a dataset.
Definition at line 10 of file ZipCodeLookup.h.
|
overridevirtual |
Returns the geographic coordinate (latitude, longitude) for a US zip code.
| [in] | zip_code | The numeric zip code. |
|
inlineoverridevirtual |
Returns the dataset name identifier.
Implements Dataset.
Definition at line 15 of file ZipCodeLookup.h.
References ZIP_CODE_DATASET.
Referenced by child().
|
overridevirtual |
Sets up a model with zip code data.
| [in] | model | The model to populate. |
Reimplemented from Dataset.