Skip to content

getLocationsInArea function added - #40

Closed
BBrunekreeft wants to merge 4 commits into
DivideBV:masterfrom
BBrunekreeft:getLocationsInArea
Closed

BBrunekreeft wants to merge 4 commits into
DivideBV:masterfrom
BBrunekreeft:getLocationsInArea

Conversation

@BBrunekreeft

@BBrunekreeft BBrunekreeft commented Feb 27, 2017 •

Copy link
Copy Markdown

Retrieves PostNL Locations in specific area.
Code Example:

$coordinatesNorthWest = \DivideBV\Postnl\ComplexTypes\Coordinate::create()
    ->setLongitude(5.085307)
    ->setLatitude(52.118860);
$coordinatesSouthEast = \DivideBV\Postnl\ComplexTypes\Coordinate::create()
    ->setLongitude(5.135604)
    ->setLatitude(52.079527);
$locations = $postNL->getLocationsInArea(
    $coordinatesNorthWest,
    $coordinatesSouthEast,
    'false',
    null,
    ['PG', 'PGE'],
    ['Daytime'],
    'NL');

@ameenross ameenross left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the contribution. Please have a look at CONTRIBUTING.md. Check your code style. Also, I'd like the commits to be a bit more descriptive.

Comment thread src/Postnl.php Outdated
Comment thread src/Postnl.php Outdated
Use type hints for parameters $coordinatesNorthWest and $coordinatesSouthEast in function getLocationsInArea()
Use ComplexTypes\LocationArea::create() with method chaining in function getLocationsInArea.
Give default value to $deliveryDate if deliverydate is null
@slokhorst

Copy link
Copy Markdown
Contributor

I would like to use this function. Is there any more work needed?

@BBrunekreeft

Copy link
Copy Markdown
Author

No more work needed

Comment thread src/Postnl.php
@ameenross

Copy link
Copy Markdown
Contributor

Sorry for the delay, I'd like to get this merged soon

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants