Skip to content

Instantly share code, notes, and snippets.

@ignaciogs
Created November 8, 2012 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ignaciogs/4038911 to your computer and use it in GitHub Desktop.
Save ignaciogs/4038911 to your computer and use it in GitHub Desktop.
Returns conditions from World Weather Online API for a given latitude and longitude
GeoPoint center = mapView.getMapCenter();
WorldWeatherOnlineApiProvider.getClient().query(new ContextAwareAPIDelegate<WorldWeatherOnlineResponse>(MainActivity.this,
WorldWeatherOnlineResponse.class, RequestCache.LoadPolicy.NEVER, RequestCache.StoragePolicy.DISABLED) {
@Override
public void onResults(WorldWeatherOnlineResponse worldWeatherOnlineResponse) {
}
@Override
public void onError(Throwable e) {
}
}, getString(R.string.world_weather_online_key), 3,
Query.latLng(center.getLatitudeE6() / 1E6, center.getLongitudeE6() / 1E6));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment