Skip to content

Spring Boot Microservice to connect with the U.S. Census API

Notifications You must be signed in to change notification settings

mpeels/Geocoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 

Repository files navigation

Geocoding

Spring Boot Microservice to connect with the U.S. Census API

Access through port 8081

CensusService.java:

Construction:
    When an instances of CensusService is created it will intalize with an instances of RestClient.

submittedAddress(Address address)
    Calling the submittedAddress function takes an address object as an input to create a uri path
    that the RestClient uses to submit a request to the US Census API. The api's response is then 
    mapped to a Response object.

Updates:
    Transitioned to RestClient instead of WebClient to produce more readable and simple code.

GeocoderController.java:

Run Process: Start project from terminal with './gradlw bootRun' while in directory or 
run from GecoderApplication

Initializes the Census Service and takes the users address input before making a call to 
the US Census API and returning a response. 

Resources:

About

Spring Boot Microservice to connect with the U.S. Census API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published