This an example implementation that illustrates how to interact with the Google Maps Geocoding API.
Due to there being many GPS Coordinate combinations for every address as well as different ways an address can be written, this example project implements a LocationVerificationService
that has a verifyMatch
method which will check if a given set of GPS Coordinates falls within a given Address (according to Google Maps, of course).
Pull requests are welcome if you see something that could be improved.
- Java 1.8.0_77 SDK
- Maven 3.3.9
--
- Fork this repository to your GitHub account
- Clone your newly forked repository to your local environment
- Get a Google Maps API Server Key
- Replace
yourGoogleMapsApiServerKeyGoesHere
with your key inside theLocationVerificationServiceImpl
public constructor - Change directory to
/your/path/to/google-maps-services-geocoding-parent
and runmvn install
(via bash)
- You should receive a
BUILD SUCCESS
message from Maven
- Change directory to
../google-maps-services-geocoding-integration-tests
and runmvn install
(via bash)
- You should receive a
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0
as well as aBUILD SUCCESS
message from Maven
--
- The Google Maps Geocoding API
googlemaps/google-maps-services-java
on GitHub