MapComplete/src/test.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
714 B
TypeScript
Raw Normal View History

import SvelteUIElement from "./UI/Base/SvelteUIElement"
import Test from "./UI/Test.svelte"
import LinkedDataLoader from "./Logic/Web/LinkedDataLoader"
import { src_url_equal } from "svelte/internal"
2024-02-20 02:01:08 +01:00
2024-03-19 01:32:06 +01:00
new SvelteUIElement(Test).AttachTo("maindiv")
const url_multiple_sections = "https://data.velopark.be/data/Stad-Deinze_14"
const url_single_section = "https://data.velopark.be/data/NMBS_764"
const url_with_shape = "https://data.velopark.be/data/Stad-Leuven_APCOA_018"
const url_with_yearly_charge = "https://data.velopark.be/data/Cyclopark_AL02"
const url = url_multiple_sections /*/ url_single_section //*/
const results = await LinkedDataLoader.fetchVeloparkEntry(url_with_yearly_charge)
console.log(results)