8000 GitHub - dividebyzero/springpostal: Java based Spring library wrapper for libpostalrest address services
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Java based Spring library wrapper for libpostalrest address services

License

Notifications You must be signed in to change notification settings

dividebyzero/springpostal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

springpostal

Java based Spring library wrapper for libpostalrest address services

##usage This library is released via jitpack.io

  1. Add it in your root build.gradle at the end of repositories:

     allprojects {<br>	
         repositories {<br>
             ...<br>
             maven { url 'https://jitpack.io' }
         }
     }
    
  2. Add the dependency

     dependencies {
             implementation 'cc.dividebyzero:springpostal:1.0.0'
     }
    
  3. Add the postal host to your application.properties cc.dividebyzero.springpostal.baseUrl=${POSTAL_BASE_URL:localhost:8080}

  4. Inject PostalService in your code and use it

     @Autowired
     PostalService postalService;
     
     void foo(){
         PostalAddress address = postalService.getStructuredAddress("Mörfelder Landstraße 362, 60528 Frankfurt am Main");
     } 
    

About

Java based Spring library wrapper for libpostalrest address services

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0