dhl-packstation-validation
Version:
This package validates addresses of a DHL Packstation or lists the nearby DHL Packstation close to an zip code.
27 lines (20 loc) • 651 B
Markdown
This package helps to validate the address of a Packstation of DHL by its Number and the zip code. It also allows to retrieve a list of Packstationen close to the location of a zip code.
```
import { isValidAddress } from 'dhl-packstation-validation'
isValidAddress(<your zip code>, <your packstation number>).then((isValid) =>
if (isValid) {
// do something
}
)
```
```
import { listAddresses } from 'dhl-packstation-validation'
listAddresses(<your zip code>).then((list) => {
// do something with the list
})
```