This is valentine challenge solution implemented in Android Studio.
This solution generate GeoJson with heart, arrow and 'love you' text. GeoJSON create heart at given position(latitude, longutude) and the size depends on given radiusInMeters.
![]() |
For generating GeoJson with heart, arrow and 'love you' text call method generateHeart with parameter latitude, longitude and radius in meters.
FeatureCollection geoJson = GeneratePointsHelper.generateHeart(latitude, longitude, radiusInMeters);
JSONObject geoJSONObject = geoJson.toJSON();
To save geoJson to file use WriteToFileHelper.saveToFile. GeoJson.json will be saved in document folder on external storage in device.
WriteToFileHelper.saveToFile(this, geoJSON);