com.factual.data_science_toolkit
Class Coord
java.lang.Object
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. |
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"}
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.