Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

GetLocationAddressCommand

RSS
Modified on Monday, 03 June 2013 02:02 PM by 156.75.200.241 Categorized as Uncategorized
A command that gets an address based on a point.


CommandVerb

"address"

Parameters

NameTypeDescription
GeometryGeometryThe geometry for the point.

Code Sample


FDOT.Map.executeCommand('address', {X:31.1,Y:-84.2}
      function (r)
      {
         //Do Something
      });

Returns


|_Success (true/false)
|_Message
|_Result
  |_Street
  |_City
  |_State
  |_Zip

Usage

 
FDOT.Map.selectPoint(function (geometry) {
                FDOT.Map.executeCommand("address", geometry,
                    function (returnValue) {
                           var address = returnValue.Result;
                           console.log(address.Street);                       
                           console.log(address.City);                       
                           console.log(address.State);                       
                           console.log(address.Zip);                       
                    });
});

See Also

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