public class GMapTool
extends java.lang.Object
Google Maps toolbox
Modifier and Type | Class and Description |
---|---|
static class |
GMapTool.Location |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BASE_URL |
static java.lang.String |
GEOCODING_URL |
static java.lang.String |
JS_URL |
static java.lang.String |
STATICMAP_URL |
Constructor and Description |
---|
GMapTool() |
Modifier and Type | Method and Description |
---|---|
static GMapTool.Location[] |
geocodeAll(java.lang.String address)
Geocode from a given raw address
|
static GMapTool.Location |
geocodeOne(java.lang.String address)
Geocode from a given raw address
|
static void |
main(java.lang.String[] args) |
static java.lang.String |
staticMapURL(double lat,
double lng,
int zoom,
int width,
int height,
boolean marker)
Static map image URL
|
static java.lang.String |
staticMapURL(GMapTool.Location location,
int zoom,
int width,
int height,
boolean marker)
Static map image URL
|
static java.lang.String |
staticMapURL(java.lang.String coords,
int zoom,
int width,
int height,
boolean marker)
Static map image URL
|
public static final java.lang.String BASE_URL
public static final java.lang.String GEOCODING_URL
public static final java.lang.String STATICMAP_URL
public static final java.lang.String JS_URL
public static GMapTool.Location[] geocodeAll(java.lang.String address)
address
- Raw addresspublic static GMapTool.Location geocodeOne(java.lang.String address)
address
- Raw addresspublic static java.lang.String staticMapURL(double lat, double lng, int zoom, int width, int height, boolean marker)
lat
- Latitudelng
- Longitude (e.g.zoom
- Zoom (e.g. 14)width
- Image width (px)height
- Image height (px)marker
- Display markerpublic static java.lang.String staticMapURL(GMapTool.Location location, int zoom, int width, int height, boolean marker)
location
- Locationzoom
- Zoom (e.g. 14)width
- Image width (px)height
- Image height (px)marker
- Display markerpublic static java.lang.String staticMapURL(java.lang.String coords, int zoom, int width, int height, boolean marker)
coords
- Geocoordinates (e.g. "48.86900000000001;2.3595125")zoom
- Zoom (e.g. 14)width
- Image width (px)height
- Image height (px)marker
- Display markerpublic static void main(java.lang.String[] args)
Copyright (c)2006-2014 Simplicite Software. All Rights Reserved.