MAP_SOURCE_BING, /* Bing */
MAP_SOURCE_PEAKFINDER, /* PeakFinder */
MAP_SOURCE_GEOHACK, /* Geohack */
- MAP_SOURCE_PANORAMIO, /* Panoramio */
}
/**
return generateBingUrl(inTrackInfo);
case MAP_SOURCE_PEAKFINDER:
case MAP_SOURCE_GEOHACK:
- case MAP_SOURCE_PANORAMIO:
return generateUrlForPoint(inSource, inTrackInfo);
case MAP_SOURCE_OSM:
default:
return generatePeakfinderUrl(currPoint);
case MAP_SOURCE_GEOHACK:
return generateGeohackUrl(currPoint);
- case MAP_SOURCE_PANORAMIO:
- return generatePanoramioUrl(currPoint);
default:
return null;
}
// TODO: Could use absolute values and S, W but this seems to work
}
- /**
- * Generate a url for Panoramio.com
- * @param inPoint current point, not null
- * @return URL
- */
- private static String generatePanoramioUrl(DataPoint inPoint)
- {
- return "http://panoramio.com/map/#lt=" + FIVE_DP.format(inPoint.getLatitude().getDouble())
- + "&ln=" + FIVE_DP.format(inPoint.getLongitude().getDouble()) + "&z=1&k=0";
- }
-
/**
* Get the median value from the given lat/long range