Skip to content

Instantly share code, notes, and snippets.

@marcelpinto
Created April 30, 2018 09:15
Show Gist options
  • Save marcelpinto/3df09f7176b3a6a4aa2842adf55a745e to your computer and use it in GitHub Desktop.
Save marcelpinto/3df09f7176b3a6a4aa2842adf55a745e to your computer and use it in GitHub Desktop.
package com.here.example.weather
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
interface WeatherApi {
@GET("/weather/1.0/report.json?app_id={YOUR_APP_ID}&app_code={YOUR_APP_CODE}")
fun getObservations(@Query("product") product: String,
@Query("latitude") latitude: Double,
@Query("longitude") longitude: Double,
@Query("oneobservation") single: Boolean
): Call<WeatherObservation>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment