Skip to content

Commit

Permalink
[vizier]: Update default URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagohm committed Jul 26, 2023
1 parent ee58b31 commit e2986c4
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ import java.io.InputStreamReader
import java.lang.reflect.Type

/**
* VizieR provides the most complete library of published astronomical catalogues
* with verified and enriched data, accessible via multiple interfaces.
*
* Query tools allow the user to select relevant data tables and to extract and format
* records matching given criteria.
*
* @see <a href="http://cdsarc.u-strasbg.fr/doc/asu-summary.htx">Documentation</a>
*/
class VizierTAPService(url: String = URL) : RetrofitService(url) {
class VizierTAPService(url: String = "") : RetrofitService(url.ifBlank { URL }) {

override val converterFactory: List<Converter.Factory> = listOf(CSVRecordListConverterFactory)

Expand Down Expand Up @@ -53,7 +59,7 @@ class VizierTAPService(url: String = URL) : RetrofitService(url) {

companion object {

const val URL = "https://tapvizier.u-strasbg.fr/"
const val URL = "http://tapvizier.cds.unistra.fr/"

@JvmStatic private val CSV_READER = NamedCsvReader.builder()
.fieldSeparator(',')
Expand Down

0 comments on commit e2986c4

Please sign in to comment.