Skip to content

Commit

Permalink
Update geo parser name
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw authored and kghbln committed Aug 28, 2018
1 parent a5f90e7 commit 69f60aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions formats/filtered/src/Filters/DistanceFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @ingroup SemanticResultFormats
*/

use DataValues\Geo\Parsers\GeoCoordinateParser;
use DataValues\Geo\Parsers\LatLongParser;
use \Exception;
use SMWPropertyValue;
use SRF\Filtered\ResultItem;
Expand Down Expand Up @@ -51,7 +51,7 @@ protected function buildJsConfig() {

try {

$geoCoordinateParser = new GeoCoordinateParser();
$geoCoordinateParser = new LatLongParser();

$callback = function ( $value ) use ($geoCoordinateParser) {
$latlng = $geoCoordinateParser->parse( $value );
Expand Down Expand Up @@ -103,7 +103,7 @@ public function getJsDataForRow( ResultItem $row ) {

} else {

$coordParser = new GeoCoordinateParser();
$coordParser = new LatLongParser();
while ( $value instanceof \SMWDataItem ) {
try {
$latlng = $coordParser->parse( $value->getSerialization() );
Expand Down
4 changes: 2 additions & 2 deletions formats/filtered/src/View/MapView.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace SRF\Filtered\View;

use DataValues\Geo\Parsers\GeoCoordinateParser;
use DataValues\Geo\Parsers\LatLongParser;
use Exception;
use Message;
use SMWPropertyValue;
Expand Down Expand Up @@ -62,7 +62,7 @@ public function getJsDataForRow( ResultItem $row ) {

} elseif ( class_exists( 'DataValues\Geo\Parsers\GeoCoordinateParser' ) ) {

$coordParser = new GeoCoordinateParser();
$coordParser = new LatLongParser();
while ( $value instanceof \SMWDataItem ) {
try {
$latlng = $coordParser->parse( $value->getSerialization() );
Expand Down

0 comments on commit 69f60aa

Please sign in to comment.