Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void getCoord(string a, string c, string z){
- Http h = new Http();
- HttpRequest req = new HttpRequest();
- a.replaceAll('\s+', '-');
- c.replaceAll('\s+', '-');
- z.replaceAll('\s+', '-');
- string param = a + '+' + c + '+' + z;
- system.debug('looking for coordinates');
- req.setEndpoint('https://maps.googleapis.com/maps/api/geocode/json?address='+ param +'&sensor=false');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement