Skip to content

Commit

Permalink
output as file
Browse files Browse the repository at this point in the history
  • Loading branch information
repeat committed Jan 27, 2020
1 parent ae1ad8e commit 77a44d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hsr.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@
'features' => $features
];

echo json_encode($geojson, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
$handle = fopen('hsr.geojson', 'w+');
fwrite($handle, json_encode($geojson, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT));
fclose($handle);

0 comments on commit 77a44d3

Please sign in to comment.