Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

GetAddressLocationsCommand

RSS
Modified on Wednesday, 12 October 2011 02:07 PM by 156.75.200.43 Categorized as Uncategorized
Gets locations for an address.


CommandVerb

"locate"

Parameters

NameTypeDescription
StreetAddressstringThe street address being located
CitystringThe city for the address being located
StatestringThe state for the address being located
ZipCodestringThe zipcode for the address being located
HighlightHighestScoreboolHighlight the highest score.

Code Sample

FDOT.Map.executeCommand('locate', {   StreetAddress: '605 Suwannee Street',
                                      City: 'Tallahassee',
                                      State: 'FL',
                                      ZipCode: ''
                                  }, 
                                  onLocateCompleted);

Returns


AddressLocatorResult
|_Result  
  |_FeatureType
    |_Id
    |_Name
    |_Description
    |_GroupName
    |_Attributes (AttributeDescription [])
      |_
        |_Name
        |_Description
        |_Type (.Net System.Type)
        |_IsIdentifier
        |_IsDisplayValue
  |_Features (Feature[])
    |_
      |_HasDescription
      |_Geometry
        |_SpatialReference
        |_X
        |_Y
        |_Points [][]         
        |_Paths  [][][]
        |_Rings  [][][]
        |_XMin
        |_XMax
        |_YMin
        |_YMax
        |_Radius
      |_Attributes 
        |_
          |_Key (AttributeDescription)
              |_Name
              |_Description
              |_Type
              |_IsIdentifier
              |_IsDisplayValue
          |_Value
      |_DisplayValues
        |_
          |_Address
          |_Score
          |_Side

Usage


var addressLocatorResult = a.Result;
var features = addressLocatorResult.Features;
   
if (features.length > 0) {
    var geometry = features[0].Geometry;          
    FDOT.Map.executeCommand('zoomToGeometry', { Geometry: geometry }, function () { });
}

See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.