Skip to content

fernst/address-matcher-wm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Back End Coding

Usage

Run tests

On the root of the project, run the following command:

mvn clean test

Build executable jar file

On the root of the project, run the following command:

mvn clean package

Execute the program

After execute the previous step, you can execute:

java -jar target/geolocation-finder.jar

You'll see the output in STDOUT, and any errors/exceptions that are handled in STDERR

Original Instructions

Please fork this repository and push when you are completed.

Write a program that reads the included file of addresses and finds the geolocation of each address.

Use https://maps.googleapis.com/maps/api/geocode/json?address=

*Note that this free api is subject to rate limiting. You will need to handle this with a maximum number of retries being 5. If an address cannot be geolocated or maximum number of retries has exceeded, set the status to "NOT_FOUND"

The application should output a JSONArray of JSONObjects.

Example output

[{
  "address": "address",
  "status": "FOUND"
  "location": {
    "lat": 1234.56,
    "lng": 1234.56
  }
}]

**You may use a JSON library but otherwise stick to what comes with Java JDK

We leave the implementation open ended so you can work comfortably using tech you are used to.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages