Ejemplos de uso del Namespace 'configuration/'
Nota: Para la ejecución de los ejemplos se usa curl en linea de comandos.
Petición:
curl http://b5m.gipuzkoa.eus/api/1.0/es/configuration/layers/foreground.json
Resultado:
{ "layers": { "orts": [{ "title": "Ortofoto 2006", "data_type": "tms", "layer_order": "0", "zoom": { "max": "19", "units_per_pixel_min": "0.703125", "min": "9" }, "tile_format": { "extension": "jpg", "height": "256", "mime_type": "image/jpeg", "width": "256" }, "year": "2006", "name": "ort2006", "profile": "global-geodetic", "proyection": "EPSG:900913", "origin": { "y": "20037508.0", "x": "-20037508.0" }, "bounding_box": { "xmax": "-182582.0", "ymax": "5391912.0", "xmin": "-293257.0", "ymin": "5283111.0" }, "layer_type": "ort" }], "maps": [{ "title": "Mapa 2008", "data_type": "tms", "layer_order": "0", "zoom": { "max": "19", "units_per_pixel_min": "0.703125", "min": "9" }, "tile_format": { "extension": "png", "height": "256", "mime_type": "image/png", "width": "256" }, "year": "2008", "name": "map2008", "profile": "global-geodetic", "proyection": "EPSG:900913", "origin": { "y": "20037508.0", "x": "-20037508.0" }, "bounding_box": { "xmax": "-182582.0", "ymax": "5391912.0", "xmin": "-293257.0", "ymin": "5283111.0" }, "layer_type": "map" }, { "title": "Cartograf\u00eda 1983-1987", "data_type": "tms", "layer_order": "1", "zoom": { "max": "17", "units_per_pixel_min": "0.703125", "min": "16" }, "tile_format": { "extension": "jpg", "height": "256", "mime_type": "image/jpeg", "width": "256" }, "year": "1983-1987", "name": "pap5000", "profile": "global-geodetic", "proyection": "EPSG:900913", "origin": { "y": "20037508.0", "x": "-20037508.0" }, "bounding_box": { "xmax": "-182582.0", "ymax": "5391912.0", "xmin": "-293257.0", "ymin": "5283111.0" }, "layer_type": "map" }] } }
Petición:
curl http://b5m.gipuzkoa.eus/api/1.0/es/configuration/layers/background.json
Resultado:
{ "layers": { "orts": [{ "title": "Google Maps", "layer_order": "0", "api_type": "G_SATELLITE_MAP", "name": "googlemaps-satellite", "open_layers_type": "google", "credit_url": "http://maps.google.es/?hl=es", "layer_type": "ort" }, { "title": "Yahoo Maps", "layer_order": "1", "api_type": "YAHOO_MAP_SAT", "name": "yahoomaps-sat", "open_layers_type": "yahoo", "credit_url": "http://espanol.maps.yahoo.com/", "layer_type": "ort" }], "maps": [{ "title": "Google Maps", "layer_order": "0", "api_type": "G_NORMAL_MAP", "name": "googlemaps-normal", "open_layers_type": "google", "credit_url": "http://maps.google.es/?hl=es", "layer_type": "map" }, { "title": "Yahoo Maps", "layer_order": "1", "api_type": "YAHOO_MAP_REG", "name": "yahoomaps-reg", "open_layers_type": "yahoo", "credit_url": "http://espanol.maps.yahoo.com/", "layer_type": "map" }] } }