src/Pro6pp.php
public function distance($from_nl_fourpp, $to_nl_fourpp, $algorithm = 'road')
    {
        $this->data = ['from_nl_fourpp' => $from_nl_fourpp, 'to_nl_fourpp' => $to_nl_fourpp, 'algorithm' => $algorithm];

        return $this->call('distance', $this->prepareData($this->data));
    }
public function distance($from_nl_fourpp, $to_nl_fourpp, $algorithm = 'road')
    {
        $this->data = ['from_nl_fourpp' => $from_nl_fourpp, 'to_nl_fourpp' => $to_nl_fourpp, 'algorithm' => $algorithm];

        return $this->call('distance', $this->prepareData($this->data));
    }
public function distance ( $ from_nl_fourpp , $ to_nl_fourpp , $ algorithm = 'road' ) { $ this -> data = [ 'from_nl_fourpp' => $ from_nl_fourpp , 'to_nl_fourpp' => $ to_nl_fourpp , 'algorithm' => $ algorithm ] ; return $ this -> call ( 'distance' , $ this -> prepareData ( $ this -> data ) ) ; }
Calculates the distance between two nl_fourpp postalcodes. Optional you can choose between
road or straight distance.

@param $from_nl_fourpp
@param $to_nl_fourpp
@param $algorithm

@return mixed
Calculates the distance between two nl_fourpp postalcodes . Optional you can choose between road or straight distance .