@Test public void retrievePointForIgnoredLocality() throws IOException { LatLng point = new GeoNamesServiceImpl().findLatLng("Country: General; Locality: General"); assertThat(point, is(nullValue())); }
@Override public LatLng findLatLng(String geoNameTermOrLocale) throws IOException { LatLng point = pointCache.get(geoNameTermOrLocale); return point == null ? getCentroid(geoNameTermOrLocale) : point; }
GeoNamesServiceImpl implements GeoNamesService { @Override public LatLng findLatLng(String geoNameTermOrLocale) throws IOException { LatLng point = pointCache.get(geoNameTermOrLocale); return point == null ? getCentroid(geoNameTermOrLocale) : point; } }
GeoNamesServiceImpl implements GeoNamesService { @Override public LatLng findLatLng(String geoNameTermOrLocale) throws IOException { LatLng point = pointCache.get(geoNameTermOrLocale); return point == null ? getCentroid(geoNameTermOrLocale) : point; }  }
GeoNamesServiceImpl implements GeoNamesService { @Override public LatLng findLatLng(String geoNameTermOrLocale) throws IOException { LatLng point = pointCache.get(geoNameTermOrLocale); return point == null ? getCentroid(geoNameTermOrLocale) : point; }  @Override boolean hasTermForLocale(String locality); @Override LatLng findLatLng(String geoNameTermOrLocale); static Long parseGeoId(String idString); LatLng getCentroid(Long id); }
GeoNamesServiceImpl implements GeoNamesService { @Override public LatLng findLatLng(String geoNameTermOrLocale) throws IOException { LatLng point = pointCache.get(geoNameTermOrLocale); return point == null ? getCentroid(geoNameTermOrLocale) : point; }  @Override boolean hasTermForLocale(String locality); @Override LatLng findLatLng(String geoNameTermOrLocale); static Long parseGeoId(String idString); LatLng getCentroid(Long id); static final TermImpl GEO_TERM_EARTH; }