/** * Perform search in satellite mode. If no location found default world map with lang,lat (0,0) is * returned. * * @param q * @param mode * @return */ public String performSearchPhoto(String q, Integer zoom) throws GeocoderException { GGeoString geoString; GPoint gPoint; int zoomInt = (zoom == null) ? GoogleCalculator.INITIAL_ZOOM : zoom.intValue(); GLatLng gLatLng = doSearch(q); if (gLatLng != null) { gPoint = this.calc.fromLatLngToPixel(gLatLng, zoomInt); } else { zoomInt = GoogleCalculator.WORLD_ZOOM; gPoint = this.calc.fromLatLngToPixel(GoogleCalculator.WORLD_LAT_LNG, zoomInt); } GImage gImage = this.calc.fromGPixelToGImage(gPoint); gImage.setZoom(zoomInt); geoString = this.calc.fromGImageToGeoString(gImage); return getMainSatImagesList(geoString); }