MapQuest Advantage JavaScript API Reference Documentation

Class MQExec

Object
   |
   +--MQExec

class MQExec


Provides communication layer for requests to a server. Most, but not all, of the functions generate actual requests to the MapQuest Server. Within the context of this object, a Session object is used to maintain information concerning the current client's requests.
Defined in mqexec.js

See:


Field Summary
 Object GEOCODE_VERSION
          
 Object GETRECORDINFO_VERSION
          
 Object GETSESSION_VERSION
          
<private>  Object m_strXInfo
          
 Object REVERSEGEOCODE_VERSION
          
 Object ROUTE_VERSION
          
 Object ROUTEMATRIX_VERSION
          
 Object SEARCH_VERSION
          
 
Constructor Summary
MQExec ( <String/MQExec> strServerNameORmqeObj, <String> strPathToServer, <int> nServerPort, <String> strProxyServerName, strPathToProxyServerPage, <int> nProxyServerPort )
            Constructs new MQExec Object
 
Method Summary
 void batchGeocode(<MQLocationCollection> mqlcLocations, <MQLocationCollectionCollection> mqlccLocations, <MQAutoGeocodeCovSwitch/MQGeocodeOptionsCollection> theOptions)
           Method to batch geocode a collection of locations.
 String createSessionEx(<MQSession> mqsSession)
           Generates a request to the MapQuest server (as specified by the server name, path, and port number) to create a user Session.
 void doRoute(<MQLocationCollection> mqlcLocations, <MQRouteOptions> mqroOptions, <MQRouteResults> mqrrResults, <String> strSessionUID, <MQRectLL> mqRectLL)
           Calculates a route using a collection of locations as origin and destination.
 void doRouteMatrix(<MQLocationCollection> mqlcLocations, <boolean> bAllToAll, <MQRouteOptions> mqroOptions, <MQRouteMatrixResults> mqrmrResults)
           Calculates a route matrix.
 <private>  void doTransaction(<String> strTransaction, <Array> arrRequest, strVersion )
           Performs the given transaction by making AJAX call to the Proxy Server page.
 void geocode(<MQAddress> mqaAddress, <MQLocationCollection> mqlcLocations, <MQAutoGeocodeCovSwitch/MQGeocodeOptionsCollection> theOptions)
           Method to geocode an address or an intersection.
 String getProxyServerName()
           Returns the name or IP of the proxy server to connect to.
 void getRecordInfo(<MQStringCollection> mqscFieldNames, <MQDBLayerQuery> mqdlqQuery, <MQRecordSet> mqrsResults, <MQStringCollection> mqscRecIds)
           Generates a request to the MapQuest server (as specified by the server name, path, and port number) to perform a DB Search based on either the recordIds received or the extraCriteria info of the dblayerquery.
 <private>  void getRequestXml(<String> strTransaction, <Array> arrRequest, <String> strVersion)
           Prepares request XML data to be sent to the server for a given transaction and set of request objects.
 <private>  void getRouteBoundingBoxFromSessionResponse(sessionId, <MQRectLL> mqRectLL)
           Sets the mqRectLL appropriately for tilemaps routing
 Document getServerInfo( <int> lType )
           Returns the string which specifies the coverage information requested directly via an http request.
 String getServerName()
           Returns the name of the server which will be used to satisfy this request.
 String getServerPath()
           Returns the path to the server which will be used to satisfy this request.
 int getServerPort()
           Returns the port number of the server which will be used to satisfy this request.
 void getSession(strSessionID, mqObj)
          
 <private>  boolean isAlive()
           Returns a value indicating whether or not this object has been initialized to a map server and port number.
 void reverseGeocode(<MQLatLng> mqllLatLng, <MQLocationCollection> mqlcLocations, <String> strMapCovName, <String> strGeocodeCovName)
           Finds the address at a given latitude/longitude position.
 void search(<MQSearchCriteria> mqscCriteria, <MQFeatureCollection> mqfcSearchResults, <String> strCoverageName, <MQDBLayerQueryCollection> mqdlqcDbLayers, <MQFeatureCollection> mqfcFeatures, <MQDTCollection> mqdcDisplayTypes)
           Generates a request to the MapQuest server (as specified by the server name, path, and port number) to perform a search and return the results in a FeatureCollection object.
 void setProxyServerName(<String> strProxyServerName)
           Sets the name or IP of the proxy server to connect to.
 void setServerName(<String> strServerName)
           Sets the name of the server which is to be used to satisfy this request.
 void setServerPath(<String> strServerPath)
           Sets the path to the server which is to be used to satisfy this request.
 void setServerPort(<int> nServerPort)
           Sets the port number to the server which is to be used to satisfy this request.

Field Detail

GEOCODE_VERSION

Object GEOCODE_VERSION

GETRECORDINFO_VERSION

Object GETRECORDINFO_VERSION

GETSESSION_VERSION

Object GETSESSION_VERSION

m_strXInfo

<private> Object m_strXInfo

REVERSEGEOCODE_VERSION

Object REVERSEGEOCODE_VERSION

ROUTE_VERSION

Object ROUTE_VERSION

ROUTEMATRIX_VERSION

Object ROUTEMATRIX_VERSION

SEARCH_VERSION

Object SEARCH_VERSION

Constructor Detail

MQExec

MQExec( <String/MQExec> strServerNameORmqeObj, <String> strPathToServer, <int> nServerPort, <String> strProxyServerName, strPathToProxyServerPage, <int> nProxyServerPort )

Method Detail

batchGeocode

void batchGeocode(<MQLocationCollection> mqlcLocations, <MQLocationCollectionCollection> mqlccLocations, <MQAutoGeocodeCovSwitch/MQGeocodeOptionsCollection> theOptions)

createSessionEx

String createSessionEx(<MQSession> mqsSession)

doRoute

void doRoute(<MQLocationCollection> mqlcLocations, <MQRouteOptions> mqroOptions, <MQRouteResults> mqrrResults, <String> strSessionUID, <MQRectLL> mqRectLL)

doRouteMatrix

void doRouteMatrix(<MQLocationCollection> mqlcLocations, <boolean> bAllToAll, <MQRouteOptions> mqroOptions, <MQRouteMatrixResults> mqrmrResults)

doTransaction

 <private> void doTransaction(<String> strTransaction, <Array> arrRequest, strVersion )

geocode

void geocode(<MQAddress> mqaAddress, <MQLocationCollection> mqlcLocations, <MQAutoGeocodeCovSwitch/MQGeocodeOptionsCollection> theOptions)

getProxyServerName

String getProxyServerName()

getRecordInfo

void getRecordInfo(<MQStringCollection> mqscFieldNames, <MQDBLayerQuery> mqdlqQuery, <MQRecordSet> mqrsResults, <MQStringCollection> mqscRecIds)

getRequestXml

 <private> void getRequestXml(<String> strTransaction, <Array> arrRequest, <String> strVersion)

getRouteBoundingBoxFromSessionResponse

 <private> void getRouteBoundingBoxFromSessionResponse(sessionId, <MQRectLL> mqRectLL)

getServerInfo

Document getServerInfo( <int> lType )

getServerName

String getServerName()

getServerPath

String getServerPath()

getServerPort

int getServerPort()

getSession

void getSession(strSessionID, mqObj)

isAlive

 <private> boolean isAlive()

reverseGeocode

void reverseGeocode(<MQLatLng> mqllLatLng, <MQLocationCollection> mqlcLocations, <String> strMapCovName, <String> strGeocodeCovName)

search

void search(<MQSearchCriteria> mqscCriteria, <MQFeatureCollection> mqfcSearchResults, <String> strCoverageName, <MQDBLayerQueryCollection> mqdlqcDbLayers, <MQFeatureCollection> mqfcFeatures, <MQDTCollection> mqdcDisplayTypes)

setProxyServerName

void setProxyServerName(<String> strProxyServerName)

setServerName

void setServerName(<String> strServerName)

setServerPath

void setServerPath(<String> strServerPath)

setServerPort

void setServerPort(<int> nServerPort)

MapQuest Advantage JavaScript API Reference Documentation

Documentation generated by JSDoc on Tue Oct 16 08:04:12 2007