Skip to content
Snippets Groups Projects
Commit 98d7392a authored by LE-CUDENEC JOFFREY's avatar LE-CUDENEC JOFFREY
Browse files

Merge branch 'main' into 'main'

Enregistrement des données récupérés dans un json

See merge request !17
parents af42e452 ccdae796
Branches
Tags
1 merge request!17Enregistrement des données récupérés dans un json
......@@ -10,6 +10,8 @@ using Mapbox.Geocoding;
public class destination : MonoBehaviour
{
[SerializeField]
Text _resultsText;
[SerializeField]
ForwardGeocodeUserInput _startLocationGeocoder;
......@@ -79,6 +81,7 @@ public class destination : MonoBehaviour
{
var data = JsonConvert.SerializeObject(res, Formatting.Indented, JsonConverters.Converters);
string sub = data.Substring(0, data.Length > 5000 ? 5000 : data.Length) + "\n. . . ";
_resultsText.text = sub;
System.IO.File.WriteAllText(Application.dataPath + "\\test.json", data);
}
......
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment