public final class StreetsideURL extends Object
Modifier and Type | Class and Description |
---|---|
static class |
StreetsideURL.APIv3 |
static class |
StreetsideURL.MainWebsite |
static class |
StreetsideURL.VirtualEarth |
Modifier and Type | Field and Description |
---|---|
private static String |
BING_MAPS_KEY |
private static String |
CLIENT_ID |
private static int |
OSM_BBOX_NORTH |
private static int |
OSM_BBOX_SOUTH |
private static int |
OSM_BBOX_WEST |
private static int |
OSM_BBOXEAST |
private static String |
STREETSIDE_BASE_URL
Base URL of the Bing Bubble API.
|
private static String |
STREETSIDE_PRIVACY_URL |
private static String |
TEST_BUBBLE_ID |
Modifier | Constructor and Description |
---|---|
private |
StreetsideURL() |
Modifier and Type | Method and Description |
---|---|
(package private) static String |
queryByIdString(Map<String,String> parts) |
(package private) static String |
queryStreetsideBoundsString(Map<String,String> parts) |
(package private) static String |
queryString(Map<String,String> parts)
Builds a query string from it's parts that are supplied as a
Map |
(package private) static URL |
string2URL(String... strings)
|
static URL[] |
string2URLs(String baseUrlPrefix,
String cubemapImageId,
String baseUrlSuffix) |
private static final String STREETSIDE_BASE_URL
private static final String CLIENT_ID
private static final String BING_MAPS_KEY
private static final String TEST_BUBBLE_ID
private static final String STREETSIDE_PRIVACY_URL
private static final int OSM_BBOX_NORTH
private static final int OSM_BBOX_SOUTH
private static final int OSM_BBOXEAST
private static final int OSM_BBOX_WEST
private StreetsideURL()
public static URL[] string2URLs(String baseUrlPrefix, String cubemapImageId, String baseUrlSuffix)
static String queryString(Map<String,String> parts)
Map
parts
- the parts of the query stringstatic String queryStreetsideBoundsString(Map<String,String> parts)
static String queryByIdString(Map<String,String> parts)
static URL string2URL(String... strings)
String
into a URL
without throwing a MalformedURLException
.
Instead such an exception will lead to an Logging.error(Throwable)
.
So you should be very confident that your URL is well-formed when calling this method.strings
- the Strings describing the URL