-
Couldn't load subscription status.
- Fork 338
Open
Labels
Description
Readme says I can use toJson() method to get a GeoJSON string
$point = new Point(40.7484404, -73.9878441);
$point->toJson();
// {
// "type": "Feature",
// "properties": {},
// "geometry": {
// "type": "Point",
// "coordinates": [
// -73.9878441,
// 40.7484404
// ]
// }
// }
In reality it returns {"type":"Point","coordinates":[-73.9878441,40.7484404]} whish is't a valid GeoJson format
Maybe add toGeoJson method?
SoraMakes and grimzy