SOA::GEONAMES Class Reference

#include <soa/geonames.h>

List of all members.

Classes

class  RECORD
 Result. More...

Public Types

enum  SITE { SITE_Geonames, SITE_Google }

Public Member Functions

 GEONAMES ()
 ~GEONAMES ()
void GetRecord (RECORD &record, int index)
ERRVALUE QueryPoint (DPOINT2D &point, SITE site, MDLGPARENT dlgparent=NULL, const MISTRING &dlgmsg=NULL)
ERRVALUE QueryPolyline (POLYLINE &polyline, SITE site, int MaxResults=10, MDLGPARENT dlgparent=NULL, const MISTRING &dlgmsg=NULL)
ERRVALUE QueryRecordList (MILIST< RECORD > &List, SITE site, int MaxResults=10, MDLGPARENT dlgparent=NULL, const MISTRING &dlgmsg=NULL)
void SetName (const MISTRING &name)

Member Enumeration Documentation

Enumerator:
SITE_Geonames 
SITE_Google 

Constructor & Destructor Documentation

SOA::GEONAMES::GEONAMES (  ) 

Default constructor.

SOA::GEONAMES::~GEONAMES (  ) 

Destructor.


Member Function Documentation

void SOA::GEONAMES::GetRecord ( RECORD record,
int  index 
) [inline]
ERRVALUE SOA::GEONAMES::QueryPoint ( DPOINT2D point,
SITE  site,
MDLGPARENT  dlgparent = NULL,
const MISTRING dlgmsg = NULL 
)

Query first result and return as lat/lon point.

Parameters:
point Point result
site Site location to use
dlgparent Parent for status/progress dialog
dlgmsg Message to display in status dialog
ERRVALUE SOA::GEONAMES::QueryPolyline ( POLYLINE polyline,
SITE  site,
int  MaxResults = 10,
MDLGPARENT  dlgparent = NULL,
const MISTRING dlgmsg = NULL 
)

Query results and add points to polyline.

Parameters:
polyline Polyline result
site Site location to use
MaxResults Number of results to use. Max allowed results is 1000.
dlgparent Parent for status/progress dialog
dlgmsg Message to display in status dialog
ERRVALUE SOA::GEONAMES::QueryRecordList ( MILIST< RECORD > &  List,
SITE  site,
int  MaxResults = 10,
MDLGPARENT  dlgparent = NULL,
const MISTRING dlgmsg = NULL 
)

Query results and return list of records.

Parameters:
List List result
site Site location to use
MaxResults Number of results to use. Max allowed results is 1000.
dlgparent Parent for status/progress dialog
dlgmsg Message to display in status dialog
void SOA::GEONAMES::SetName ( const MISTRING name  )  [inline]

Set name of location to find.

Parameters:
name Name of location to find

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:39:20 2012 for TNTsdk 2012 by  doxygen 1.6.1