Skip to content

Commit

Permalink
Fix: Coordinates using ',' instead of '.' as delimiter.
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Jan 5, 2018
1 parent cf6e7a1 commit 3e08089
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client/DataTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ public function transform(JobInterface $job, $options = [])
$tmpLoc['_text'] = $str;
if ($coords) {
$coords = $coords->getCoordinates();
$tmpLoc['@lon'] = $coords[0];
$tmpLoc['@lat'] = $coords[1];
$tmpLoc['@lon'] = str_replace(',', '.', (string) $coords[0]);
$tmpLoc['@lat'] = str_replace(',', '.', (string) $coords[1]);
}

$loc[] = $tmpLoc;
Expand Down

0 comments on commit 3e08089

Please sign in to comment.