import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
import Header from '../components/Header.svelte';
import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
import Header from '../components/Header.svelte';
state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
viewbox: search_params.get('viewbox'),
bounded: search_params.get('bounded'),
dedupe: search_params.get('dedupe'),
viewbox: search_params.get('viewbox'),
bounded: search_params.get('bounded'),
dedupe: search_params.get('dedupe'),
- document.querySelector('input[name=q]').focus();
+ if (anyStructuredFieldsSet) {
+ document.querySelector(".nav-tabs a[href='#structured']").click();
+ document.querySelector('input[name=street]').focus();
+ } else {
+ document.querySelector('input[name=q]').focus();
+ }