@Override
    public MediaFeed searchMedia(double latitude, double longitude, Date maxTimeStamp, Date minTimeStamp, int distance)
            throws InstagramException {
        Map<String, String> params = new HashMap<String, String>();

        params.put(QueryParam.LATITUDE, Double.toString(latitude));
        params.put(QueryParam.LONGITUDE, Double.toString(longitude));

        if (maxTimeStamp != null) {
            params.put(QueryParam.MAX_TIMESTAMP, String.valueOf(maxTimeStamp.getTime() / 1000));
        }

        if (minTimeStamp != null) {
            params.put(QueryParam.MIN_TIMESTAMP, String.valueOf(minTimeStamp.getTime() / 1000));
        }

        params.put(QueryParam.DISTANCE, String.valueOf(distance));

        return createInstagramObject(Verbs.GET, MediaFeed.class, Methods.MEDIA_SEARCH, params);
    }
@Override
    public MediaFeed searchMedia(double latitude, double longitude, Date maxTimeStamp, Date minTimeStamp, int distance)
            throws InstagramException {
        Map<String, String> params = new HashMap<String, String>();

        params.put(QueryParam.LATITUDE, Double.toString(latitude));
        params.put(QueryParam.LONGITUDE, Double.toString(longitude));

        if (maxTimeStamp != null) {
            params.put(QueryParam.MAX_TIMESTAMP, String.valueOf(maxTimeStamp.getTime() / 1000));
        }

        if (minTimeStamp != null) {
            params.put(QueryParam.MIN_TIMESTAMP, String.valueOf(minTimeStamp.getTime() / 1000));
        }

        params.put(QueryParam.DISTANCE, String.valueOf(distance));

        return createInstagramObject(Verbs.GET, MediaFeed.class, Methods.MEDIA_SEARCH, params);
    }
@ Override public MediaFeed searchMedia ( double latitude , double longitude , Date maxTimeStamp , Date minTimeStamp , int distance ) throws InstagramException { Map < String , String > params = new HashMap < String , String > ( ) ; params . put ( QueryParam . LATITUDE , Double . toString ( latitude ) ) ; params . put ( QueryParam . LONGITUDE , Double . toString ( longitude ) ) ; if ( maxTimeStamp != null ) { params . put ( QueryParam . MAX_TIMESTAMP , String . valueOf ( maxTimeStamp . getTime ( ) / 1000 ) ) ; } if ( minTimeStamp != null ) { params . put ( QueryParam . MIN_TIMESTAMP , String . valueOf ( minTimeStamp . getTime ( ) / 1000 ) ) ; } params . put ( QueryParam . DISTANCE , String . valueOf ( distance ) ) ; return createInstagramObject ( Verbs . GET , MediaFeed . class , Methods . MEDIA_SEARCH , params ) ; }
/* (non-Javadoc)
@see org.jinstagram.InstagramClient#searchMedia(double, double, java.util.Date, java.util.Date, int)
/ * ( non - Javadoc )