org.opentripplanner.geocoder.google.GoogleJsonDeserializer Maven / Gradle / Ivy
package org.opentripplanner.geocoder.google;
import flexjson.JSONDeserializer;
public class GoogleJsonDeserializer {
private JSONDeserializer jsonDeserializer;
public GoogleJsonDeserializer() {
jsonDeserializer = new JSONDeserializer()
.use(null, GoogleGeocoderResults.class);
}
public GoogleGeocoderResults parseResults(String content) {
return (GoogleGeocoderResults) jsonDeserializer.deserialize(content);
}
}