 
                 }
             }
-            
-       //     task.resume()
-    //
         return "hello world"
 
     } catch {

import Vapor
import PostgreSQL
import HTTP

enum gasStations: String {
    case GNC

                    let price = dict.object?["price"]?.float

                    do {
                        let reverseGeocode = "http://maps.googleapis.com/maps/api/geocode/json?latlng=\((dict.object?["lng"]?.float)!),\((dict.object?["lat"]?.float)!)&sensor=true"
                        let getResponse = try drop.client.get(reverseGeocode)
                        let json2 = try JSON(bytes: getResponse.body.bytes!)
                        let formattedaddress = json2["results"]?["formatted_address"]
                        
                        var adress = ""
                        
                        if let array = formattedaddress?.node.array {
                            adress = array[0].string!
                        }
                        let _ = try postgreSQL.execute("Insert INTO gas_station(name, price, lattitude, longitude, type, formattedAddress) VALUES('\(name!)', '\(price!)', '\(lat!)', '\(long!)', '\(gas.rawValue)', '\(adress)')")
                    } catch {
                        print("error executing")

