Adamkzh / pArranger

solar pannel arranger 🌞
MIT License
0 stars 0 forks source link

Find the solution on record the users input address #1

Closed Adamkzh closed 5 years ago

Adamkzh commented 5 years ago

The user now can input address, however, we have to record the user's input. I have found this page which shows the data in the response image `` please help me find a way to record the user input and do the query to the Mapbox server

Adamkzh commented 5 years ago
let inputTextValue = document.getElementsByClassName("mapboxgl-ctrl-geocoder mapboxgl-ctrl")[0].textContent;
let address = inputTextValue.substr(0, inputTextValue.indexOf('United States') + 13);