diff --git a/src/main.js b/src/main.js index 03c7f95..c80cd10 100644 --- a/src/main.js +++ b/src/main.js @@ -14,7 +14,6 @@ window.onload = () => { production: { url: 'https://api.mapbox.com/geocoding/v5', key: 'pk.eyJ1Ijoic2VhcmNoLW1hY2hpbmUtdXNlci0xIiwiYSI6ImNrN2Y1Nmp4YjB3aG4zZ253YnJoY21kbzkifQ.JM5ZeqwEEm-Tonrk5wOOMw', - key_hiero_federation: 'pk.eyJ1IjoiYXBleHNlYXJjaHVzZXIiLCJhIjoiY2pxc2V6bjVyMHVxcjQ4cXE4cmg1a242diJ9.TMZ9oWhH_fF4ccYkaMeyAw' }, staging: { url: process.env.DEPLOY_ENV === 'local' ? 'http://localhost:8000/geocoding/v5': 'https://api-geocoder-staging.tilestream.net/geocoding/v5', @@ -592,7 +591,7 @@ window.onload = () => { } let env = this.cnf.staging ? 'staging' : 'production'; - const tokenKey = this.cnf.localsearch ? 'key_hiero_federation' : 'key'; + const tokenKey = 'key'; const accessToken = this.credentials[env][tokenKey]; let url = `${this.credentials[env].url}/${this.cnf.index}/${encodeURIComponent(this.query)}.json?access_token=${accessToken}&cachebuster=${(+new Date())}`; @@ -607,7 +606,7 @@ window.onload = () => { if (this.cnf.onLanguage && this.cnf.languages.length) url = `${url}&language=${encodeURIComponent(this.cnf.languages.map((lang) => { return lang.code }).join(','))}`; if (this.cnf.languageStrict) url = `${url}&languageMode=strict`; if (this.cnf.routing) url = `${url}&routing=true`; - if (!this.cnf.approx) url = `${url}&services=hiero`; + if (!this.cnf.approx) url = `${url}&services=none`; this.url = url;