com.factual.data_science_toolkit
Class Coord

java.lang.Object
  extended by com.factual.data_science_toolkit.Coord

public class Coord
extends Object

Represents a coordinate that came from a DataScienceToolkit query.

Author:
aaron

Constructor Summary
Coord(org.json.JSONObject in)
          Constructs a Coord from , which is expected to be a marshalled JSON object from a DataScienceToolkit query for a coord.
 
Method Summary
 String getAddress()
           
 double getConfidence()
           
 String getCountry()
           
 double getLatitude()
           
 String getLocality()
           
 double getLongitude()
           
 String getRegion()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coord

public Coord(org.json.JSONObject in)
Constructs a Coord from , which is expected to be a marshalled JSON object from a DataScienceToolkit query for a coord.

Example in:

 {"region":"CA",
  "street_name":"Chalon Rd",
  "country_code3":"USA",
  "locality":"Los Angeles",
  "street_number":"12001",
  "longitude":-118.480875,
  "latitude":34.08179,
  "confidence":0.61,
  "street_address":"12001 Chalon Rd",
  "country_code":"US",
  "fips_county":"06037",
  "country_name":"United States"}
 

Method Detail

getRegion

public String getRegion()

getAddress

public String getAddress()

getLocality

public String getLocality()

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getCountry

public String getCountry()

getConfidence

public double getConfidence()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012. All Rights Reserved.