lib/parking.js
function getParkings(latitude, longitude, radius, type, params, callback) {
    if(!latitude || !longitude || !radius) {
      callback(new Error("Parking.getParkings: latitude, longitude and radius required"));
      return;
    }
    params = params || {};
    params.latitude = latitude;
    params.longitude = longitude;
    params.radius = radius;
    var subResource;
    switch(type) {
      case 'bus': subResource = 'BusParkings';
        break;
      case 'handicap': subResource = 'HandicapParkings';
        break;
      case 'mc': subResource = 'MCParkings';
        break;
      case 'private': subResource = 'PrivateParkings';
        break;
      case 'publicTime': subResource = 'PublicTimeParkings';
        break;
      case 'publicToll': subResource = 'PublicTollParkings';
        break;
      case 'residential': subResource = 'ResidentialParkings';
        break;
      case 'truck': subResource = 'TruckParkings';
        break;
      default:
        callback(new Error("Parking.getParkings: unknown type: " + type));
    }
    core.callApi('/ParkingService/v1.0/' + subResource, params, callback);
  }
function getParkings(latitude, longitude, radius, type, params, callback) {
    if(!latitude || !longitude || !radius) {
      callback(new Error("Parking.getParkings: latitude, longitude and radius required"));
      return;
    }
    params = params || {};
    params.latitude = latitude;
    params.longitude = longitude;
    params.radius = radius;
    var subResource;
    switch(type) {
      case 'bus': subResource = 'BusParkings';
        break;
      case 'handicap': subResource = 'HandicapParkings';
        break;
      case 'mc': subResource = 'MCParkings';
        break;
      case 'private': subResource = 'PrivateParkings';
        break;
      case 'publicTime': subResource = 'PublicTimeParkings';
        break;
      case 'publicToll': subResource = 'PublicTollParkings';
        break;
      case 'residential': subResource = 'ResidentialParkings';
        break;
      case 'truck': subResource = 'TruckParkings';
        break;
      default:
        callback(new Error("Parking.getParkings: unknown type: " + type));
    }
    core.callApi('/ParkingService/v1.0/' + subResource, params, callback);
  }
function getParkings ( latitude , longitude , radius , type , params , callback ) { if ( ! latitude || ! longitude || ! radius ) { callback ( new Error ( "Parking.getParkings: latitude, longitude and radius required" ) ) ; return ; } params = params || { } ; params . latitude = latitude ; params . longitude = longitude ; params . radius = radius ; var subResource ; switch ( type ) { case 'bus' : subResource = 'BusParkings' ; break ; case 'handicap' : subResource = 'HandicapParkings' ; break ; case 'mc' : subResource = 'MCParkings' ; break ; case 'private' : subResource = 'PrivateParkings' ; break ; case 'publicTime' : subResource = 'PublicTimeParkings' ; break ; case 'publicToll' : subResource = 'PublicTollParkings' ; break ; case 'residential' : subResource = 'ResidentialParkings' ; break ; case 'truck' : subResource = 'TruckParkings' ; break ; default : callback ( new Error ( "Parking.getParkings: unknown type: " + type ) ) ; } core . callApi ( '/ParkingService/v1.0/' + subResource , params , callback ) ; }
Returns all public parkings of the given type.

@memberof module:gbgcity/Parking
@param {String|Number} latitude The latitude of the location around which to explore.
@param {String|Number} longitude The longitude of the location around which to explore.
@param {String|Number} radius The radius of the area to explore.
@param {String} type The parking type. Any of: bus, handicap, mc, private, publicTime, publicToll, residential, truck
@param {Object} [params] An object containing additional parameters.
@param {Function} callback The function to call with results, function({Error} error, {Object} results)/
@see http://data.goteborg.se/ParkingService/v1.0/help/operations/GetBusParkings and similar
Returns all public parkings of the given type .