Click or drag to resize

SimpleFeature Methods

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release

The SimpleFeature type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFromJSON
Populates the feature's data from an object in the format generated by ToJSON(). The object passed in has two key-value pairs representing the location and the tag, and an optional key-value pair representing the metadata.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberSummarize
Creates a summary for one or more SimpleFeature objects. The resulting object will be of the following form - note that "features" will only be populated if there are fewer than 50 features total.
JavaScript
{ "tally" : { "Restaurant" : 2,
              "Jeweler" : 1,
              "ATM" : 1 },
  "features" : [
    { "location" : "33.615575,-117.930215", "type" : "Restaurant", "metadata" : { "Name" : "Rudy's Pub & Grill" } },
    { "location" : "33.615035,-117.930154", "type" : "Restaurant", "metadata" : { "Name" : "Mama D's Italy Kitchen" } },
    { "location" : "33.620420,-117.923972", "type" : "Jeweler",    "metadata" : { "Name" : "William Harold Jewelers" } },
    { "location" : "33.614501,-117.932181", "type" : "ATM",        "metadata" : { "Name" : "Bank of America ATM" } },
  ]
}
Public methodToJSON
Converts the feature into an object that can be easily serialized for transmission over HTTP. The returned object has two key-value pairs representing the location and the tag.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also