android-geojson icon indicating copy to clipboard operation
android-geojson copied to clipboard

Retrofit integration

Open johnjohndoe opened this issue 10 years ago • 0 comments

I would like to use your library with Retrofit. This requires a converter factory which is used to introduce the parser to Retrofit.

// Retrofit 2 example with Gson
new Retrofit.Builder()
    .baseUrl("https://raw.githubusercontent.com")
    .addConverterFactory(GsonConverterFactory.create())
    .build();

You can find Retrofit converters for other parsers here and use them as a starting point. It would be great if you can provide the converter factory.

johnjohndoe avatar Nov 02 '15 18:11 johnjohndoe