Last active
December 4, 2017 15:39
-
-
Save princessjanf/09e1f61b499da78fd11383b47413e369 to your computer and use it in GitHub Desktop.
merge latitude and longitude to fit google directions api format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mergeLot(){ | |
if (this.state.latitude != null && this.state.longitude!=null) | |
{ | |
let concatLot = this.state.latitude +","+this.state.longitude | |
this.setState({ | |
concat: concatLot | |
}, () => { | |
this.getDirections(concatLot, "-6.270565,106.759550"); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment