Latest 1.0.1
Homepage https://github.com/vbergae/VBValenciaOpenData
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Frameworks MapKit
Authors

Build Status
Version
Platform

Installation

VBValenciaOpenData is available through CocoaPods, to install
it simply add the following line to your Podfile:

pod "VBValenciaOpenData"

Configure your ‘Authorization.plist’ file

In order to make requests to the offical service, you should provide an username and passowrd. See more info from here.

  1. Get an scaffolded version from here.
  2. Fill with your username/password (request permissions using this form).
  3. Rename it from Authorization.plist.distribution to Authorization.plist
  4. Add Authorization.plist to your app’s main bundle.

Usage

How to find information near the user.

Based on the documentation provided by Valencia’s city hall all services returns
three results. Get more information from this PDF (in spanish).

Import main header file:

#import <VODValenciaOpenData/VODValencia.h>

Request information based on user location

Parkings
[VODParking findAllByCoordinates:coordinates   // User location
              completion:^(NSArray *elements,  // Completion handler
                           NSError *error)) {
    /** Handle results or error */                           
}];
Taxi stops
[VODTaxi findAllByCoordinates:coordinates   // User location
                   completion:^(NSArray *elements,  // Completion handler
                                NSError *error)) {
    /** Handle results or error */                           
}];
Valenbisi’s parkings and bikes
[VODValenbisiParking findAllByCoordinates:coordinates   // User location
                               completion:^(NSArray *elements,  // Completion handler
                                            NSError *error)) {
    /** Handle results or error */                           
}]; 

[VODValenbisiBike findAllByCoordinates:coordinates   // User location
                            completion:^(NSArray *elements,  // Completion handler
                                         NSError *error)) {
    /** Handle results or error */                           
}];     
Wifi points
[VODWifi findAllByCoordinates:coordinates   // User location
                   completion:^(NSArray *elements,  // Completion handler
                                NSError *error)) {
    /** Handle results or error */                           
}]; 
Traffic status
[VODTraffic findAllByCoordinates:coordinates   // User location
                      completion:^(NSArray *elements,  // Completion handler
                                   NSError *error)) {
    /** Handle results or error */                           
}]; 
Trash Containers
[VODContainer findAllByType:VODOilContainer // Container's type
                coordinates:coordinates     // User location
                  ompletion:^(NSArray *elements,  // Completion handler
                              NSError *error)) {
    /** Handle results or error */                           
}]; 

License

VBValenciaOpenData is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "VBValenciaOpenData",
    "version": "1.0.1",
    "summary": "An Objective-c client for the Valencia Datos Abiertos service",
    "description": "                       VBValenciaOpenData is a client library written in n                       objective-c to retrieve data from the "Valencia Datos Abiertos" service.n                       n                       More info: [Valencia Datos abiertos](http://www.valencia.es/ayuntamiento/datosabiertos.nsf/fCategoriaVistaAcc_busqueda?ReadForm&lang=1&nivel=2&seccion=1&Vista=vCategoriasAccTodas&Categoria=Sin_categoria&idapoyo=22ADF97C1FD223B5C1257C55003BD01F)n",
    "homepage": "https://github.com/vbergae/VBValenciaOpenData",
    "license": "MIT",
    "authors": {
        "Vu00edctor Berga": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vbergae/VBValenciaOpenData.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes/**/*.{h,m}",
    "public_header_files": "Classes/VODValencia.h",
    "frameworks": "MapKit",
    "dependencies": {
        "AFNetworking": []
    }
}

Pin It on Pinterest

Share This