Uma biblioteca open-source para a Google Directions API.
Um servidor de aplicações Java EE 6 em virtude da utilização de CDI (preferencialmente JBoss AS 7.x ou superior).
@Inject
private DirectionsSearch directionsSearh;
public void example() {
DirectionsResponse response = directionsSearch.create()
.from(FLORIANOPOLIS)
.waypoint(SAO_JOSE)
.to(PALHOCA)
.go();
}
@Inject
private DirectionsSearch directionsSearh;
public void example() {
DirectionsResponse response = directionsSearch.create()
.from(FLORIANOPOLIS)
.waypoint(SAO_JOSE)
.to(PALHOCA)
.withProxy("your_proxy_host", "your_proxy_port", "your_proxy_user", "your_proxy_pass")
.go();
}
@Inject
private DirectionsSearch directionsSearh;
public void example() {
DirectionsResponse response = directionsSearch.create()
.from(FLORIANOPOLIS)
.to(PALHOCA)
.withLocale(Locale.CANADA_FRENCH) // "fr-CA"
.go();
}
@Inject
private DirectionsSearch directionsSearh;
public void example() {
DirectionsResponse response = directionsSearch.create()
.from(FLORIANOPOLIS)
.to(PALHOCA)
.withAlternatives()
.go();
}
@Inject
private DirectionsSearch directionsSearh;
public void example() {
DirectionsResponse response = directionsSearch.create()
.from(FLORIANOPOLIS)
.to(PALHOCA)
.asPremierClient("your_client_id", "your_cryptographic_key")
.go();
}
Nome: Ricardo Longa
Twitter: @ricardolonga
E-mail: ricardo.longa@gmail.com
Site: www.ricardolonga.com.br