Skip to content

Commit

Permalink
Merge pull request #19 from jeffw16/champfish
Browse files Browse the repository at this point in the history
Zip GPS fix
  • Loading branch information
champfish authored Aug 7, 2016
2 parents 9ab28f9 + c41c6c8 commit e6ca93e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ io.on('connection', function(socket){
return "";
}
a = data;
latitude = (a.substring(a.indexOf(zip)+6, a.indexOf(zip)+15))/1;
longitude = (a.slice(a.indexOf(zip)+17, a.indexOf(zip)+28))/1;
io.emit('getLatitudeLongitudeFromZip', latitude, longitude);
latitude = (a.substring(a.indexOf(zip)+6, a.indexOf(zip)+15));
longitude = (a.slice(a.indexOf(zip)+17, a.indexOf(zip)+28));
socket.emit('getLatitudeLongitudeFromZip', latitude, longitude);

});
});
Expand Down

0 comments on commit e6ca93e

Please sign in to comment.