| 1 |
#!/usr/bin/env ruby |
|---|
| 2 |
require 'mms_MizGISDriver.rb' |
|---|
| 3 |
|
|---|
| 4 |
endpoint_url = ARGV.shift |
|---|
| 5 |
obj = Mms_MizGISPortType.new(endpoint_url) |
|---|
| 6 |
|
|---|
| 7 |
# run ruby with -d to see SOAP wiredumps. |
|---|
| 8 |
obj.wiredump_dev = STDERR if $DEBUG |
|---|
| 9 |
|
|---|
| 10 |
# SYNOPSIS |
|---|
| 11 |
# getVersion |
|---|
| 12 |
# |
|---|
| 13 |
# ARGS |
|---|
| 14 |
# N/A |
|---|
| 15 |
# |
|---|
| 16 |
# RETURNS |
|---|
| 17 |
# name C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 18 |
# version C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 19 |
# date C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 20 |
# cartographyVersion C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 21 |
# poiCartographyVersion C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 22 |
# |
|---|
| 23 |
|
|---|
| 24 |
puts obj.getVersion |
|---|
| 25 |
|
|---|
| 26 |
# SYNOPSIS |
|---|
| 27 |
# getAvailableCountries |
|---|
| 28 |
# |
|---|
| 29 |
# ARGS |
|---|
| 30 |
# N/A |
|---|
| 31 |
# |
|---|
| 32 |
# RETURNS |
|---|
| 33 |
# countries ArrayOfstring - {urn:mms_MizGIS}ArrayOfstring |
|---|
| 34 |
# |
|---|
| 35 |
|
|---|
| 36 |
puts obj.getAvailableCountries |
|---|
| 37 |
|
|---|
| 38 |
# SYNOPSIS |
|---|
| 39 |
# findAddress(addressSearch, maxResults, onlyMunicipalities) |
|---|
| 40 |
# |
|---|
| 41 |
# ARGS |
|---|
| 42 |
# addressSearch AddressSearchType - {urn:mms_MizGIS}AddressSearchType |
|---|
| 43 |
# maxResults Int - {http://www.w3.org/2001/XMLSchema}int |
|---|
| 44 |
# onlyMunicipalities Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 45 |
# |
|---|
| 46 |
# RETURNS |
|---|
| 47 |
# addresses ArrayOfAddressType - {urn:mms_MizGIS}ArrayOfAddressType |
|---|
| 48 |
# |
|---|
| 49 |
addressSearch = maxResults = onlyMunicipalities = nil |
|---|
| 50 |
puts obj.findAddress(addressSearch, maxResults, onlyMunicipalities) |
|---|
| 51 |
|
|---|
| 52 |
# SYNOPSIS |
|---|
| 53 |
# getAddressFromGeocode(geocode, languageCode) |
|---|
| 54 |
# |
|---|
| 55 |
# ARGS |
|---|
| 56 |
# geocode GeocodeType - {urn:mms_MizGIS}GeocodeType |
|---|
| 57 |
# languageCode C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 58 |
# |
|---|
| 59 |
# RETURNS |
|---|
| 60 |
# address AddressType - {urn:mms_MizGIS}AddressType |
|---|
| 61 |
# |
|---|
| 62 |
geocode = languageCode = nil |
|---|
| 63 |
puts obj.getAddressFromGeocode(geocode, languageCode) |
|---|
| 64 |
|
|---|
| 65 |
# SYNOPSIS |
|---|
| 66 |
# findGeocodeFromCoordinates(coordinates, vehicle) |
|---|
| 67 |
# |
|---|
| 68 |
# ARGS |
|---|
| 69 |
# coordinates CoordinatesType - {urn:mms_MizGIS}CoordinatesType |
|---|
| 70 |
# vehicle Int - {http://www.w3.org/2001/XMLSchema}int |
|---|
| 71 |
# |
|---|
| 72 |
# RETURNS |
|---|
| 73 |
# found Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 74 |
# geocode GeocodeType - {urn:mms_MizGIS}GeocodeType |
|---|
| 75 |
# distance Double - {http://www.w3.org/2001/XMLSchema}double |
|---|
| 76 |
# |
|---|
| 77 |
coordinates = vehicle = nil |
|---|
| 78 |
puts obj.findGeocodeFromCoordinates(coordinates, vehicle) |
|---|
| 79 |
|
|---|
| 80 |
# SYNOPSIS |
|---|
| 81 |
# findAddressFromCoordinates(coordinates, vehicle, languageCode) |
|---|
| 82 |
# |
|---|
| 83 |
# ARGS |
|---|
| 84 |
# coordinates CoordinatesType - {urn:mms_MizGIS}CoordinatesType |
|---|
| 85 |
# vehicle Int - {http://www.w3.org/2001/XMLSchema}int |
|---|
| 86 |
# languageCode C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 87 |
# |
|---|
| 88 |
# RETURNS |
|---|
| 89 |
# found Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 90 |
# address AddressType - {urn:mms_MizGIS}AddressType |
|---|
| 91 |
# distance Double - {http://www.w3.org/2001/XMLSchema}double |
|---|
| 92 |
# |
|---|
| 93 |
coordinates = vehicle = languageCode = nil |
|---|
| 94 |
puts obj.findAddressFromCoordinates(coordinates, vehicle, languageCode) |
|---|
| 95 |
|
|---|
| 96 |
# SYNOPSIS |
|---|
| 97 |
# getListOfPoiMacrocategories(languageCode) |
|---|
| 98 |
# |
|---|
| 99 |
# ARGS |
|---|
| 100 |
# languageCode C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 101 |
# |
|---|
| 102 |
# RETURNS |
|---|
| 103 |
# macrocategories ArrayOfPoiMacrocategoryType - {urn:mms_MizGIS}ArrayOfPoiMacrocategoryType |
|---|
| 104 |
# |
|---|
| 105 |
languageCode = nil |
|---|
| 106 |
puts obj.getListOfPoiMacrocategories(languageCode) |
|---|
| 107 |
|
|---|
| 108 |
# SYNOPSIS |
|---|
| 109 |
# getListOfPoiCategories(languageCode, onlyPopulated) |
|---|
| 110 |
# |
|---|
| 111 |
# ARGS |
|---|
| 112 |
# languageCode C_String - {http://www.w3.org/2001/XMLSchema}string |
|---|
| 113 |
# onlyPopulated Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 114 |
# |
|---|
| 115 |
# RETURNS |
|---|
| 116 |
# categories ArrayOfPoiCategoryType - {urn:mms_MizGIS}ArrayOfPoiCategoryType |
|---|
| 117 |
# |
|---|
| 118 |
languageCode = onlyPopulated = nil |
|---|
| 119 |
puts obj.getListOfPoiCategories(languageCode, onlyPopulated) |
|---|
| 120 |
|
|---|
| 121 |
# SYNOPSIS |
|---|
| 122 |
# findPois(area, box, maxResults, macroCategoryIds, categoryIds, provideInfo) |
|---|
| 123 |
# |
|---|
| 124 |
# ARGS |
|---|
| 125 |
# area AreaType - {urn:mms_MizGIS}AreaType |
|---|
| 126 |
# box BoxType - {urn:mms_MizGIS}BoxType |
|---|
| 127 |
# maxResults Int - {http://www.w3.org/2001/XMLSchema}int |
|---|
| 128 |
# macroCategoryIds ArrayOfstring - {urn:mms_MizGIS}ArrayOfstring |
|---|
| 129 |
# categoryIds ArrayOfstring - {urn:mms_MizGIS}ArrayOfstring |
|---|
| 130 |
# provideInfo Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 131 |
# |
|---|
| 132 |
# RETURNS |
|---|
| 133 |
# pois ArrayOfPoiType - {urn:mms_MizGIS}ArrayOfPoiType |
|---|
| 134 |
# |
|---|
| 135 |
area = box = maxResults = macroCategoryIds = categoryIds = provideInfo = nil |
|---|
| 136 |
puts obj.findPois(area, box, maxResults, macroCategoryIds, categoryIds, provideInfo) |
|---|
| 137 |
|
|---|
| 138 |
# SYNOPSIS |
|---|
| 139 |
# getPoiInfo(poiIds, provideInfo) |
|---|
| 140 |
# |
|---|
| 141 |
# ARGS |
|---|
| 142 |
# poiIds ArrayOfint - {urn:mms_MizGIS}ArrayOfint |
|---|
| 143 |
# provideInfo Boolean - {http://www.w3.org/2001/XMLSchema}boolean |
|---|
| 144 |
# |
|---|
| 145 |
# RETURNS |
|---|
| 146 |
# pois ArrayOfPoiType - {urn:mms_MizGIS}ArrayOfPoiType |
|---|
| 147 |
# |
|---|
| 148 |
poiIds = provideInfo = nil |
|---|
| 149 |
puts obj.getPoiInfo(poiIds, provideInfo) |
|---|
| 150 |
|
|---|
| 151 |
# SYNOPSIS |
|---|
| 152 |
# getListOfRoads(roadQueries, roadOptions) |
|---|
| 153 |
# |
|---|
| 154 |
# ARGS |
|---|
| 155 |
# roadQueries ArrayOfTmcRoadQueryType - {urn:mms_MizGIS}ArrayOfTmcRoadQueryType |
|---|
| 156 |
# roadOptions TmcRoadOptionsType - {urn:mms_MizGIS}TmcRoadOptionsType |
|---|
| 157 |
# |
|---|
| 158 |
# RETURNS |
|---|
| 159 |
# roads ArrayOfTmcRoadType - {urn:mms_MizGIS}ArrayOfTmcRoadType |
|---|
| 160 |
# |
|---|
| 161 |
roadQueries = roadOptions = nil |
|---|
| 162 |
puts obj.getListOfRoads(roadQueries, roadOptions) |
|---|
| 163 |
|
|---|
| 164 |
# SYNOPSIS |
|---|
| 165 |
# getTrafficInfo(trafficQuery, trafficOptions) |
|---|
| 166 |
# |
|---|
| 167 |
# ARGS |
|---|
| 168 |
# trafficQuery TmcTrafficQueryType - {urn:mms_MizGIS}TmcTrafficQueryType |
|---|
| 169 |
# trafficOptions TmcTrafficOptionsType - {urn:mms_MizGIS}TmcTrafficOptionsType |
|---|
| 170 |
# |
|---|
| 171 |
# RETURNS |
|---|
| 172 |
# info ArrayOfTrafficInfoType - {urn:mms_MizGIS}ArrayOfTrafficInfoType |
|---|
| 173 |
# |
|---|
| 174 |
trafficQuery = trafficOptions = nil |
|---|
| 175 |
puts obj.getTrafficInfo(trafficQuery, trafficOptions) |
|---|
| 176 |
|
|---|
| 177 |
# SYNOPSIS |
|---|
| 178 |
# getTrafficStatus(areas) |
|---|
| 179 |
# |
|---|
| 180 |
# ARGS |
|---|
| 181 |
# areas ArrayOfAreaType - {urn:mms_MizGIS}ArrayOfAreaType |
|---|
| 182 |
# |
|---|
| 183 |
# RETURNS |
|---|
| 184 |
# status ArrayOfint - {urn:mms_MizGIS}ArrayOfint |
|---|
| 185 |
# |
|---|
| 186 |
areas = nil |
|---|
| 187 |
puts obj.getTrafficStatus(areas) |
|---|
| 188 |
|
|---|
| 189 |
# SYNOPSIS |
|---|
| 190 |
# findRoute(places, params) |
|---|
| 191 |
# |
|---|
| 192 |
# ARGS |
|---|
| 193 |
# places ArrayOfGeocodeType - {urn:mms_MizGIS}ArrayOfGeocodeType |
|---|
| 194 |
# params RouteParametersType - {urn:mms_MizGIS}RouteParametersType |
|---|
| 195 |
# |
|---|
| 196 |
# RETURNS |
|---|
| 197 |
# route RouteType - {urn:mms_MizGIS}RouteType |
|---|
| 198 |
# |
|---|
| 199 |
places = params = nil |
|---|
| 200 |
puts obj.findRoute(places, params) |
|---|
| 201 |
|
|---|
| 202 |
# SYNOPSIS |
|---|
| 203 |
# getMap(imageSize, box, options) |
|---|
| 204 |
# |
|---|
| 205 |
# ARGS |
|---|
| 206 |
# imageSize ImageSizeType - {urn:mms_MizGIS}ImageSizeType |
|---|
| 207 |
# box BoxType - {urn:mms_MizGIS}BoxType |
|---|
| 208 |
# options MapOptionsType - {urn:mms_MizGIS}MapOptionsType |
|---|
| 209 |
# |
|---|
| 210 |
# RETURNS |
|---|
| 211 |
# map MapType - {urn:mms_MizGIS}MapType |
|---|
| 212 |
# |
|---|
| 213 |
imageSize = box = options = nil |
|---|
| 214 |
puts obj.getMap(imageSize, box, options) |
|---|
| 215 |
|
|---|
| 216 |
# SYNOPSIS |
|---|
| 217 |
# getMapAround(imageSize, center, radius, options) |
|---|
| 218 |
# |
|---|
| 219 |
# ARGS |
|---|
| 220 |
# imageSize ImageSizeType - {urn:mms_MizGIS}ImageSizeType |
|---|
| 221 |
# center CoordinatesType - {urn:mms_MizGIS}CoordinatesType |
|---|
| 222 |
# radius Double - {http://www.w3.org/2001/XMLSchema}double |
|---|
| 223 |
# options MapOptionsType - {urn:mms_MizGIS}MapOptionsType |
|---|
| 224 |
# |
|---|
| 225 |
# RETURNS |
|---|
| 226 |
# map MapType - {urn:mms_MizGIS}MapType |
|---|
| 227 |
# |
|---|
| 228 |
imageSize = center = radius = options = nil |
|---|
| 229 |
puts obj.getMapAround(imageSize, center, radius, options) |
|---|
| 230 |
|
|---|
| 231 |
|
|---|