|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.drismo.logic.JsonFunctions
public class JsonFunctions
Used to get the city/street name from a location. Uses 2 different webservices from www.geonames.org
ViewTrip
Constructor Summary | |
---|---|
JsonFunctions()
|
Method Summary | |
---|---|
static java.lang.String |
getCity(float lat,
float lon)
Get the city from a position. |
static org.json.JSONObject |
getJSONfromURL(java.lang.String url)
Borrowed from: http://p-xr.com/android-tutorial-how-to-parse-read-json-data-into-a-android-listview/ and slightly modified. |
static java.lang.String |
getStreet(float lat,
float lon)
Gets the streetname from a position. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonFunctions()
Method Detail |
---|
public static org.json.JSONObject getJSONfromURL(java.lang.String url)
url
- the url to get JSON data from
public static java.lang.String getCity(float lat, float lon)
lat
- the latitudelon
- longitude
public static java.lang.String getStreet(float lat, float lon)
lat
- the latitudelon
- longitude
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |