Skip to content

Instantly share code, notes, and snippets.

@nickpeihl
Last active February 2, 2023 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickpeihl/300166a1b15284f856621b674f6f5ab1 to your computer and use it in GitHub Desktop.
Save nickpeihl/300166a1b15284f856621b674f6f5ab1 to your computer and use it in GitHub Desktop.
Vega Address search
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 500,
"padding": 5,
"signals": [
{
"name": "address_input",
"value": "",
"bind": {
"placeholder": "Search for an address",
"input": "text",
"name": "Address",
"debounce": 300
}
}
],
"data": [
{
"name": "results",
"url": {
"signal": "'https://nominatim.openstreetmap.org/search?format=json&q=' + address_input"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment