Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

feature/471 - update heremaps keys #472

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/utils/geo.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import _ from 'lodash/fp'

const defaultHereConfig = {
app_id: 'KzmI0fMwTyOG10rqZacS', // TEMP EMAIL USED - USE/GET YOUR APP_ID
app_code: 'PykXtnTUeH7DDM-RLlpwyA', // TEMP EMAIL USED - USE/GET YOUR APP_CODE
apiKey: '1nGXh3FMLSo7DKTP_2IpLoC_AUNE_8BGvxxwAK1q_LQ',
country: 'USA',
autocomplete: 'https://autocomplete.geocoder.api.here.com/6.2/suggest.json',
geoCoding: 'https://geocoder.api.here.com/6.2/geocode.json?gen=9',
Expand Down Expand Up @@ -44,8 +43,8 @@ export let loadHereOptions = async (
countryCode = 'USA'
}
hereConfig.country = countryCode
let { autocomplete: url, app_id, app_code, country } = hereConfig
let apiUrl = `${url}?app_id=${app_id}&app_code=${app_code}&country=${country}&query=${inputValue}`
let { autocomplete: url, apiKey, country } = hereConfig
let apiUrl = `${url}?apiKey=${apiKey}&country=${country}&query=${inputValue}`

let data = await (await fetch(apiUrl)).json()

Expand Down