src/main/java/de/blau/android/resources/eli/EliFeatureCollection.java
/**
     * This takes the currently defined values found inside this instance and converts it to a GeoJson string.
     *
     * @return a JSON string which represents this Feature Collection
     */
This takes the currently defined values found inside this instance and converts it to a GeoJson string.
@return a JSON string which represents this Feature Collection
This takes the currently defined values found inside this instance and converts it to a GeoJson string . @return a JSON string which represents this Feature Collection
@Override
    public String toJson() {
        GsonBuilder gson = new GsonBuilder();
        gson.registerTypeAdapterFactory(EliGeoJsonAdapterFactory.create());
        gson.registerTypeAdapterFactory(GeometryAdapterFactory.create());
        return gson.create().toJson(this);
    }
@ Override public String toJson ( ) { GsonBuilder gson = new GsonBuilder ( ) ; gson . registerTypeAdapterFactory ( EliGeoJsonAdapterFactory . create ( ) ) ; gson . registerTypeAdapterFactory ( GeometryAdapterFactory . create ( ) ) ; return gson . create ( ) . toJson ( this ) ; }
This takes the currently defined values found inside this instance and converts it to a GeoJson string.
This takes the currently defined values found inside this instance and converts it to a GeoJson string .