Skip to content

Provides the google api ready to use (through Spring), along with some classes that perform requests against it; uses OkHttp3 which is compatible with IBM Java. See https://github.com/square/okhttp/issues/3173

License

Notifications You must be signed in to change notification settings

cambridgeweblab/google-maps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Module

The google maps module provides the google api ready to use (through Spring), along with some classes that perform requests against it.

It was originally necessary because the exampay project was deployed on bluemix using IBM java which did not work with the built in request handler (using OkHttp).

Setup with Maven and Spring

Just add to your pom file:

<dependency>
    <groupId>ucles.weblab</groupId>
    <artifactId>weblab-google-maps</artifactId>
    <version>0.5-SNAPSHOT</version>
</dependency>

and import the config file in your spring config file:

@Configuration
@Import(ProvideApiContextConfig.class)
public class Foo {}

this will provide the geoApiContext bean (required for every requeset) and some querying classes.

You will also need to provide the Spring application property google.api.key e.g. through an environment variable GOOGLE_API_KEY.

About

Provides the google api ready to use (through Spring), along with some classes that perform requests against it; uses OkHttp3 which is compatible with IBM Java. See https://github.com/square/okhttp/issues/3173

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages