Package org.onebusaway.geocoder.model

Examples of org.onebusaway.geocoder.model.GeocoderResultsEntity


  }

  @Transactional
  public GeocoderResults geocode(String location) {

    GeocoderResultsEntity entity = (GeocoderResultsEntity) _template.get(
        GeocoderResultsEntity.class, location);

    if (entity != null)
      return entity.getResults();

    GeocoderResults results = _geocoderService.geocode(location);

    entity = new GeocoderResultsEntity();
    entity.setLocation(location);
    entity.setResults(results);
    _template.saveOrUpdate(entity);

    return results;
  }
View Full Code Here

TOP

Related Classes of org.onebusaway.geocoder.model.GeocoderResultsEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.