Skip to content

Commit

Permalink
Fix lat and lng to string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommimon committed Apr 26, 2021
1 parent 882b5a5 commit 07304ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions send_form.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function sendForm(){
let pos = positions[document.getElementById("scelta").selectedIndex]
const data = {
'entry.1647215669': name, // nome gruppo
'entry.468238840': pos.lat.toString(), // latitude
'entry.415691257' : pos.lng.toString(), // longitude
'entry.468238840': Number(pos.lat).toFixed(6), // latitude
'entry.415691257' : Number(pos.lng).toFixed(6), // longitude
'entry.1693764111': title, // titolo attività
'entry.1037527314': description, // descrizione attività
'entry.1851639960': goals[goalNum-1], // goal
Expand Down

0 comments on commit 07304ba

Please sign in to comment.