This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ch.poole.openinghoursparser.* | |
import java.io.ByteArrayInputStream | |
import java.net.HttpURLConnection | |
import java.net.URL | |
import java.nio.charset.StandardCharsets | |
var total = 0 | |
var parsed = 0 | |
val url = URL("https://sophox.org/sparql?query=select%20%3Fopening_hours%20where%20%7B%3Felement%20osmt%3Aopening_hours%20%3Fopening_hours%7D%20") | |
val connection = url.openConnection() as HttpURLConnection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package de.westnordost.myapplication; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import java.util.Random; | |
public class MainActivity extends AppCompatActivity | |
{ | |
@Override |