From e2986c432ca039ca1a057e6513344c6d090730fc Mon Sep 17 00:00:00 2001 From: tiagohm Date: Wed, 26 Jul 2023 01:29:38 -0300 Subject: [PATCH] [vizier]: Update default URL --- .../main/kotlin/nebulosa/vizier/VizierTAPService.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nebulosa-vizier/src/main/kotlin/nebulosa/vizier/VizierTAPService.kt b/nebulosa-vizier/src/main/kotlin/nebulosa/vizier/VizierTAPService.kt index 01d7f3e6e..f80ef256c 100644 --- a/nebulosa-vizier/src/main/kotlin/nebulosa/vizier/VizierTAPService.kt +++ b/nebulosa-vizier/src/main/kotlin/nebulosa/vizier/VizierTAPService.kt @@ -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 Documentation */ -class VizierTAPService(url: String = URL) : RetrofitService(url) { +class VizierTAPService(url: String = "") : RetrofitService(url.ifBlank { URL }) { override val converterFactory: List = listOf(CSVRecordListConverterFactory) @@ -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(',')