A simple RFC 7946 GeoJSON parser in C# for Unity 3D. Utilizes the JSONObject library by Matt Schoen.
Import the JSONObject library from https://github.com/mtschoen/JSONObject
//Read a TextAsset and parse as a FeatureCollection
FeatureCollection collection = GeoJSON.GeoJSONObject.Deserialize(encodedGeoJSON.text);
//Serialize collection back to text
string json = collection.Serialize().ToString();
(0. Import the JSONObject library from https://github.com/mtschoen/JSONObject into Unity)
- Import directory into Unity
- See the example scene
- Bounding Box support