All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.geocoder.yahoo.YahooJsonDeserializer Maven / Gradle / Ivy

package org.opentripplanner.geocoder.yahoo;

import flexjson.JSONDeserializer;

public class YahooJsonDeserializer {
	
	@SuppressWarnings("unchecked")
	private JSONDeserializer jsonDeserializer;
	
	@SuppressWarnings("unchecked")
	public YahooJsonDeserializer() {
		jsonDeserializer = new JSONDeserializer()
        	.use(null, YahooGeocoderResults.class);
	}

	public YahooGeocoderResults parseResults(String json) {
		return (YahooGeocoderResults) jsonDeserializer.deserialize(json);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy