com.twitter.processing

object Geo

[source: com/twitter/processing/Geo.scala]

object Geo
extends AnyRef
Provides methods for unmarshalling a Geo from Json
Value Summary
val parser : com.google.gson.JsonParser
One Json parser to use. Note: this makes it not thread safe.
Method Summary
def fromJson (json : com.google.gson.JsonObject) : Geo
Get a geo object from the given Json object Note that we don't return options here, as we assume that basic verification is done by the Status object
def fromJson (json : java.lang.String) : Geo
Get a geo object from the given string. Note that we don't return options here, as we assume that basic verification is done by the Status object
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Value Details
val parser : com.google.gson.JsonParser
One Json parser to use. Note: this makes it not thread safe.

Method Details
def fromJson(json : java.lang.String) : Geo
Get a geo object from the given string. Note that we don't return options here, as we assume that basic verification is done by the Status object

def fromJson(json : com.google.gson.JsonObject) : Geo
Get a geo object from the given Json object Note that we don't return options here, as we assume that basic verification is done by the Status object


processing library Tweet Stream by Mark McBride. (c) 2009