@situm/cordova 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/CHANGELOG_UNRELEASED.md +28 -0
  3. package/Jenkinsfile +84 -0
  4. package/LICENSE +21 -0
  5. package/README.md +472 -0
  6. package/azure/common-steps.yaml +5 -0
  7. package/azure-pipelines.yml +336 -0
  8. package/docs/JSDoc/MapView.html +300 -0
  9. package/docs/JSDoc/MapViewControllerImpl.html +299 -0
  10. package/docs/JSDoc/Situm.html +5257 -0
  11. package/docs/JSDoc/android_Interfaces.js.html +825 -0
  12. package/docs/JSDoc/android_situm.js.html +380 -0
  13. package/docs/JSDoc/fonts/glyphicons-halflings-regular.eot +0 -0
  14. package/docs/JSDoc/fonts/glyphicons-halflings-regular.svg +288 -0
  15. package/docs/JSDoc/fonts/glyphicons-halflings-regular.ttf +0 -0
  16. package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff +0 -0
  17. package/docs/JSDoc/fonts/glyphicons-halflings-regular.woff2 +0 -0
  18. package/docs/JSDoc/global.html +7538 -0
  19. package/docs/JSDoc/img/toast-ui.png +0 -0
  20. package/docs/JSDoc/index.html +90 -0
  21. package/docs/JSDoc/map-view-controller.js.html +307 -0
  22. package/docs/JSDoc/map-view.js.html +172 -0
  23. package/docs/JSDoc/scripts/jquery.min.js +2 -0
  24. package/docs/JSDoc/scripts/linenumber.js +30 -0
  25. package/docs/JSDoc/scripts/prettify/Apache-License-2.0.txt +202 -0
  26. package/docs/JSDoc/scripts/prettify/lang-css.js +2 -0
  27. package/docs/JSDoc/scripts/prettify/prettify.js +28 -0
  28. package/docs/JSDoc/scripts/tui-doc.js +200 -0
  29. package/docs/JSDoc/styles/bootstrap.min.css +6 -0
  30. package/docs/JSDoc/styles/custom.css +23 -0
  31. package/docs/JSDoc/styles/prettify-jsdoc.css +111 -0
  32. package/docs/JSDoc/styles/prettify-tomorrow.css +132 -0
  33. package/docs/JSDoc/styles/tui-doc.css +485 -0
  34. package/docs/conf.json +28 -0
  35. package/docs/getting-started.md +298 -0
  36. package/docs/imagotype-SITUM-transparent-90.png +0 -0
  37. package/docs/static/styles/custom.css +23 -0
  38. package/package.json +60 -0
  39. package/plugin.xml +102 -0
  40. package/scripts/update_changelog.sh +22 -0
  41. package/src/android/app/build.gradle +51 -0
  42. package/src/android/app/proguard-rules.pro +21 -0
  43. package/src/android/app/src/main/AndroidManifest.xml +11 -0
  44. package/src/android/app/src/main/java/es/situm/plugin/DateUtils.java +15 -0
  45. package/src/android/app/src/main/java/es/situm/plugin/PluginHelper.java +919 -0
  46. package/src/android/app/src/main/java/es/situm/plugin/SitumMapper.java +968 -0
  47. package/src/android/app/src/main/java/es/situm/plugin/SitumPlugin.java +109 -0
  48. package/src/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
  49. package/src/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
  50. package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
  51. package/src/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
  52. package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  53. package/src/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  54. package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  55. package/src/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  56. package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  57. package/src/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  58. package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  59. package/src/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  60. package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  61. package/src/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  62. package/src/android/app/src/main/res/values/colors.xml +6 -0
  63. package/src/android/app/src/main/res/values/strings.xml +3 -0
  64. package/src/android/app/src/main/res/values/styles.xml +11 -0
  65. package/src/android/app/src/test/java/es/situm/plugin/PluginHelperTest.java +27 -0
  66. package/src/android/app/src/test/java/es/situm/plugin/SitumMapperTest.java +1485 -0
  67. package/src/android/app/src/test/java/es/situm/plugin/angle/AngleCreator.java +46 -0
  68. package/src/android/app/src/test/java/es/situm/plugin/bounds/BoundsCreator.java +50 -0
  69. package/src/android/app/src/test/java/es/situm/plugin/building/BuildingCreator.java +76 -0
  70. package/src/android/app/src/test/java/es/situm/plugin/cartesianCoordinate/CartesianCoordinateCreator.java +31 -0
  71. package/src/android/app/src/test/java/es/situm/plugin/circle/CircleCreator.java +41 -0
  72. package/src/android/app/src/test/java/es/situm/plugin/coordinate/CoordinateCreator.java +32 -0
  73. package/src/android/app/src/test/java/es/situm/plugin/dimensions/DimensionsCreator.java +31 -0
  74. package/src/android/app/src/test/java/es/situm/plugin/directionsRequest/DirectionsRequestCreator.java +105 -0
  75. package/src/android/app/src/test/java/es/situm/plugin/event/EventCreator.java +108 -0
  76. package/src/android/app/src/test/java/es/situm/plugin/floor/FloorCreator.java +58 -0
  77. package/src/android/app/src/test/java/es/situm/plugin/indication/IndicationCreator.java +40 -0
  78. package/src/android/app/src/test/java/es/situm/plugin/location/LocationCreator.java +197 -0
  79. package/src/android/app/src/test/java/es/situm/plugin/locationRequest/LocationRequestCreator.java +45 -0
  80. package/src/android/app/src/test/java/es/situm/plugin/locationStatus/LocationStatusCreator.java +211 -0
  81. package/src/android/app/src/test/java/es/situm/plugin/navigationProgress/NavigationProgressCreator.java +154 -0
  82. package/src/android/app/src/test/java/es/situm/plugin/poi/PoiCreator.java +126 -0
  83. package/src/android/app/src/test/java/es/situm/plugin/poiCategory/PoiCategoryCreator.java +38 -0
  84. package/src/android/app/src/test/java/es/situm/plugin/point/PointCreator.java +200 -0
  85. package/src/android/app/src/test/java/es/situm/plugin/route/RouteCreator.java +142 -0
  86. package/src/android/app/src/test/java/es/situm/plugin/routeStep/RouteStepCreator.java +173 -0
  87. package/src/android/app/src/test/java/es/situm/plugin/situmConversionArea/SitumConversionAreaCreator.java +35 -0
  88. package/src/android/build.gradle +31 -0
  89. package/src/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  90. package/src/android/gradle/wrapper/gradle-wrapper.properties +6 -0
  91. package/src/android/gradle.properties +16 -0
  92. package/src/android/gradlew +172 -0
  93. package/src/android/gradlew.bat +84 -0
  94. package/src/android/settings.gradle +3 -0
  95. package/src/android/situm.gradle +19 -0
  96. package/src/ios/Classes/Private/CDVDebug.h +25 -0
  97. package/src/ios/Classes/Private/CDVJSON_private.h +31 -0
  98. package/src/ios/Classes/Private/CDVJSON_private.m +99 -0
  99. package/src/ios/Classes/Private/CDVPlugin+Private.h +24 -0
  100. package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.h +26 -0
  101. package/src/ios/Classes/Private/CDVPlugins/CDVGestureHandler/CDVGestureHandler.m +70 -0
  102. package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.h +27 -0
  103. package/src/ios/Classes/Private/CDVPlugins/CDVHandleOpenURL/CDVHandleOpenURL.m +86 -0
  104. package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.h +34 -0
  105. package/src/ios/Classes/Private/CDVPlugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m +153 -0
  106. package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.h +50 -0
  107. package/src/ios/Classes/Private/CDVPlugins/CDVLocalStorage/CDVLocalStorage.m +487 -0
  108. package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.h +26 -0
  109. package/src/ios/Classes/Private/CDVPlugins/CDVLogger/CDVLogger.m +37 -0
  110. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.h +41 -0
  111. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewDelegate.m +399 -0
  112. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.h +27 -0
  113. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewEngine.m +202 -0
  114. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.h +29 -0
  115. package/src/ios/Classes/Private/CDVPlugins/CDVUIWebViewEngine/CDVUIWebViewNavigationDelegate.m +153 -0
  116. package/src/ios/Classes/Public/CDV.h +32 -0
  117. package/src/ios/Classes/Public/CDVAppDelegate.h +28 -0
  118. package/src/ios/Classes/Public/CDVAppDelegate.m +118 -0
  119. package/src/ios/Classes/Public/CDVAvailability.h +111 -0
  120. package/src/ios/Classes/Public/CDVAvailabilityDeprecated.h +26 -0
  121. package/src/ios/Classes/Public/CDVCommandDelegate.h +51 -0
  122. package/src/ios/Classes/Public/CDVCommandDelegateImpl.h +36 -0
  123. package/src/ios/Classes/Public/CDVCommandDelegateImpl.m +186 -0
  124. package/src/ios/Classes/Public/CDVCommandQueue.h +39 -0
  125. package/src/ios/Classes/Public/CDVCommandQueue.m +194 -0
  126. package/src/ios/Classes/Public/CDVConfigParser.h +30 -0
  127. package/src/ios/Classes/Public/CDVConfigParser.m +81 -0
  128. package/src/ios/Classes/Public/CDVInvokedUrlCommand.h +52 -0
  129. package/src/ios/Classes/Public/CDVInvokedUrlCommand.m +116 -0
  130. package/src/ios/Classes/Public/CDVPlugin+Resources.h +39 -0
  131. package/src/ios/Classes/Public/CDVPlugin+Resources.m +38 -0
  132. package/src/ios/Classes/Public/CDVPlugin.h +85 -0
  133. package/src/ios/Classes/Public/CDVPlugin.m +202 -0
  134. package/src/ios/Classes/Public/CDVPluginResult.h +66 -0
  135. package/src/ios/Classes/Public/CDVPluginResult.m +186 -0
  136. package/src/ios/Classes/Public/CDVScreenOrientationDelegate.h +33 -0
  137. package/src/ios/Classes/Public/CDVTimer.h +27 -0
  138. package/src/ios/Classes/Public/CDVTimer.m +123 -0
  139. package/src/ios/Classes/Public/CDVURLProtocol.h +27 -0
  140. package/src/ios/Classes/Public/CDVURLProtocol.m +113 -0
  141. package/src/ios/Classes/Public/CDVUserAgentUtil.h +27 -0
  142. package/src/ios/Classes/Public/CDVUserAgentUtil.m +124 -0
  143. package/src/ios/Classes/Public/CDVViewController.h +92 -0
  144. package/src/ios/Classes/Public/CDVViewController.m +821 -0
  145. package/src/ios/Classes/Public/CDVWebViewEngineProtocol.h +42 -0
  146. package/src/ios/Classes/Public/CDVWhitelist.h +34 -0
  147. package/src/ios/Classes/Public/CDVWhitelist.m +285 -0
  148. package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.h +35 -0
  149. package/src/ios/Classes/Public/NSDictionary+CordovaPreferences.m +63 -0
  150. package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.h +29 -0
  151. package/src/ios/Classes/Public/NSMutableArray+QueueAdditions.m +58 -0
  152. package/src/ios/Cordova/Cordova.h +51 -0
  153. package/src/ios/Cordova/Info.plist +24 -0
  154. package/src/ios/Podfile +5 -0
  155. package/src/ios/SitumCordovaPlugin.xcodeproj/project.pbxproj +1324 -0
  156. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  157. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  158. package/src/ios/SitumCordovaPlugin.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +8 -0
  159. package/src/ios/SitumCordovaPlugin.xcodeproj/xcshareddata/xcschemes/CordovaLib.xcscheme +100 -0
  160. package/src/ios/SitumCordovaPlugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  161. package/src/ios/SitumCordovaPlugin_Prefix.pch +22 -0
  162. package/src/ios/VERSION +1 -0
  163. package/src/ios/cordova.js +2432 -0
  164. package/src/ios/situmcordovaplugin/AppDelegate.h +22 -0
  165. package/src/ios/situmcordovaplugin/AppDelegate.m +98 -0
  166. package/src/ios/situmcordovaplugin/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
  167. package/src/ios/situmcordovaplugin/Base.lproj/LaunchScreen.storyboard +25 -0
  168. package/src/ios/situmcordovaplugin/Base.lproj/Main.storyboard +24 -0
  169. package/src/ios/situmcordovaplugin/Constants.h +14 -0
  170. package/src/ios/situmcordovaplugin/Constants.m +14 -0
  171. package/src/ios/situmcordovaplugin/Info.plist +45 -0
  172. package/src/ios/situmcordovaplugin/SITUtils.h +7 -0
  173. package/src/ios/situmcordovaplugin/SITUtils.m +13 -0
  174. package/src/ios/situmcordovaplugin/SitumLocationWrapper.h +109 -0
  175. package/src/ios/situmcordovaplugin/SitumLocationWrapper.m +983 -0
  176. package/src/ios/situmcordovaplugin/SitumPlugin.h +41 -0
  177. package/src/ios/situmcordovaplugin/SitumPlugin.m +752 -0
  178. package/src/ios/situmcordovaplugin/ViewController.h +15 -0
  179. package/src/ios/situmcordovaplugin/ViewController.m +29 -0
  180. package/src/ios/situmcordovaplugin/main.m +16 -0
  181. package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/.xccurrentversion +8 -0
  182. package/src/ios/situmcordovaplugin/situmcordovaplugin.xcdatamodeld/situmcordovaplugin.xcdatamodel/contents +4 -0
  183. package/src/ios/situmcordovaplugintests/AngleTests.m +53 -0
  184. package/src/ios/situmcordovaplugintests/BoundTests.m +51 -0
  185. package/src/ios/situmcordovaplugintests/BuildingTests.m +41 -0
  186. package/src/ios/situmcordovaplugintests/CartesianCoordinateTests.m +42 -0
  187. package/src/ios/situmcordovaplugintests/ConversionAreaTests.m +43 -0
  188. package/src/ios/situmcordovaplugintests/CoordinateTests.m +42 -0
  189. package/src/ios/situmcordovaplugintests/DimensionTests.m +43 -0
  190. package/src/ios/situmcordovaplugintests/EventTests.m +42 -0
  191. package/src/ios/situmcordovaplugintests/FloorTests.m +52 -0
  192. package/src/ios/situmcordovaplugintests/Info.plist +38 -0
  193. package/src/ios/situmcordovaplugintests/InputTests/DirectionsRequestTest.m +108 -0
  194. package/src/ios/situmcordovaplugintests/InputTests/InputCartesianCoordinateTests.m +45 -0
  195. package/src/ios/situmcordovaplugintests/InputTests/InputCoordinateTests.m +45 -0
  196. package/src/ios/situmcordovaplugintests/InputTests/InputFloorTests.m +59 -0
  197. package/src/ios/situmcordovaplugintests/InputTests/InputIndicationTests.m +45 -0
  198. package/src/ios/situmcordovaplugintests/InputTests/InputLocationTests.m +163 -0
  199. package/src/ios/situmcordovaplugintests/InputTests/InputPoiCategoryTests.m +46 -0
  200. package/src/ios/situmcordovaplugintests/InputTests/InputPointTests.m +137 -0
  201. package/src/ios/situmcordovaplugintests/InputTests/LocationRequestTest.m +79 -0
  202. package/src/ios/situmcordovaplugintests/LocationStatusTests.m +60 -0
  203. package/src/ios/situmcordovaplugintests/LocationTests.m +114 -0
  204. package/src/ios/situmcordovaplugintests/NavigationProgressTests.m +50 -0
  205. package/src/ios/situmcordovaplugintests/PoiCategoryIconTests.m +43 -0
  206. package/src/ios/situmcordovaplugintests/PoiCategoryTests.m +42 -0
  207. package/src/ios/situmcordovaplugintests/PoiTests.m +83 -0
  208. package/src/ios/situmcordovaplugintests/PointTests.m +107 -0
  209. package/src/ios/situmcordovaplugintests/RouteStepTests.m +78 -0
  210. package/src/ios/situmcordovaplugintests/RouteTests.m +42 -0
  211. package/src/ios/situmcordovaplugintests/SitumCreatorTests.h +91 -0
  212. package/src/ios/situmcordovaplugintests/SitumCreatorTests.m +928 -0
  213. package/src/ios/situmcordovaplugintests/TestingHelper.h +48 -0
  214. package/src/ios/situmcordovaplugintests/TestingHelper.m +342 -0
  215. package/src/ios/situmcordovaplugintests/indicationTests.m +43 -0
  216. package/tests/common-resources/angle/angle1.json +6 -0
  217. package/tests/common-resources/angle/angle2.json +6 -0
  218. package/tests/common-resources/bounds/bounds1.json +18 -0
  219. package/tests/common-resources/bounds/bounds2.json +18 -0
  220. package/tests/common-resources/building/building1.json +64 -0
  221. package/tests/common-resources/cartesianCoordinate/cartesianCoordinate1.json +4 -0
  222. package/tests/common-resources/circle/circle1.json +17 -0
  223. package/tests/common-resources/coordinate/coordinate1.json +4 -0
  224. package/tests/common-resources/dimensions/dimensions1.json +4 -0
  225. package/tests/common-resources/directionsRequest/directionsRequest1.json +166 -0
  226. package/tests/common-resources/directionsRequest/directionsRequest2.json +167 -0
  227. package/tests/common-resources/directionsRequest/directionsRequest3.json +166 -0
  228. package/tests/common-resources/directionsRequest/directionsRequest4.json +166 -0
  229. package/tests/common-resources/directionsRequest/directionsRequest5.json +167 -0
  230. package/tests/common-resources/directionsRequest/directionsRequest6.json +153 -0
  231. package/tests/common-resources/events/event1.json +66 -0
  232. package/tests/common-resources/floor/floor1.json +13 -0
  233. package/tests/common-resources/floor/floor2.json +13 -0
  234. package/tests/common-resources/indication/indication1.json +10 -0
  235. package/tests/common-resources/location/location1.json +48 -0
  236. package/tests/common-resources/location/location10.json +48 -0
  237. package/tests/common-resources/location/location2.json +48 -0
  238. package/tests/common-resources/location/location3.json +48 -0
  239. package/tests/common-resources/location/location4.json +48 -0
  240. package/tests/common-resources/location/location5.json +48 -0
  241. package/tests/common-resources/location/location6.json +48 -0
  242. package/tests/common-resources/location/location7.json +48 -0
  243. package/tests/common-resources/location/location8.json +48 -0
  244. package/tests/common-resources/location/location9.json +48 -0
  245. package/tests/common-resources/locationRequest/locationRequest1.json +6 -0
  246. package/tests/common-resources/locationRequest/locationRequest2.json +32 -0
  247. package/tests/common-resources/locationRequest/locationRequest3.json +33 -0
  248. package/tests/common-resources/locationRequest/locationRequest4.json +31 -0
  249. package/tests/common-resources/locationStatus/locationStatus1.json +4 -0
  250. package/tests/common-resources/locationStatus/locationStatus10.json +4 -0
  251. package/tests/common-resources/locationStatus/locationStatus11.json +4 -0
  252. package/tests/common-resources/locationStatus/locationStatus12.json +4 -0
  253. package/tests/common-resources/locationStatus/locationStatus13.json +4 -0
  254. package/tests/common-resources/locationStatus/locationStatus2.json +4 -0
  255. package/tests/common-resources/locationStatus/locationStatus3.json +4 -0
  256. package/tests/common-resources/locationStatus/locationStatus4.json +4 -0
  257. package/tests/common-resources/locationStatus/locationStatus5.json +4 -0
  258. package/tests/common-resources/locationStatus/locationStatus6.json +4 -0
  259. package/tests/common-resources/locationStatus/locationStatus7.json +4 -0
  260. package/tests/common-resources/locationStatus/locationStatus8.json +4 -0
  261. package/tests/common-resources/locationStatus/locationStatus9.json +4 -0
  262. package/tests/common-resources/navigationProgress/navigationProgress1.json +77 -0
  263. package/tests/common-resources/navigationProgress/navigationProgress2.json +77 -0
  264. package/tests/common-resources/poi/poi1.json +35 -0
  265. package/tests/common-resources/poi/poi2.json +35 -0
  266. package/tests/common-resources/poi/poi3.json +35 -0
  267. package/tests/common-resources/poi/poi4.json +38 -0
  268. package/tests/common-resources/poi/poi5.json +35 -0
  269. package/tests/common-resources/poiCategory/poiCategory1.json +7 -0
  270. package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.json +1 -0
  271. package/tests/common-resources/poiCategoryIcon/poiCategoryIcon1.png +0 -0
  272. package/tests/common-resources/point/point1.json +14 -0
  273. package/tests/common-resources/point/point2.json +14 -0
  274. package/tests/common-resources/point/point3.json +14 -0
  275. package/tests/common-resources/point/point4.json +14 -0
  276. package/tests/common-resources/point/point5.json +14 -0
  277. package/tests/common-resources/point/point6.json +14 -0
  278. package/tests/common-resources/point/point7.json +14 -0
  279. package/tests/common-resources/point/point8.json +14 -0
  280. package/tests/common-resources/route/route1.json +530 -0
  281. package/tests/common-resources/routeStep/routeStep1.json +35 -0
  282. package/tests/common-resources/routeStep/routeStep2.json +35 -0
  283. package/tests/common-resources/routeStep/routeStep3.json +35 -0
  284. package/tests/common-resources/routeStep/routeStep4.json +35 -0
  285. package/tests/common-resources/routeStep/routeStep5.json +35 -0
  286. package/tests/common-resources/situmConversionArea/situmConversionArea1.json +19 -0
  287. package/tests/js/resources/fetchBuildings.json +176 -0
  288. package/tests/js/resources/fetchEventsFromBuilding.json +201 -0
  289. package/tests/js/resources/fetchFloorsFromBuilding.json +34 -0
  290. package/tests/js/resources/fetchIndoorPOIsFromBuilding.json +574 -0
  291. package/tests/js/resources/fetchMapFromFloor.json +3 -0
  292. package/tests/js/resources/fetchOutdoorPOIsFromBuilding.json +68 -0
  293. package/tests/js/resources/fetchPoiCategories.json +72 -0
  294. package/tests/js/resources/fetchPoiCategoryIconNormal.json +3 -0
  295. package/tests/js/resources/fetchPoiCategoryIconSelected.json +3 -0
  296. package/tests/js/resources/requestDirections.json +1167 -0
  297. package/tests/js/resources/startPositioning/0_starting.json +4 -0
  298. package/tests/js/resources/startPositioning/1_preparingPositioningModel.json +4 -0
  299. package/tests/js/resources/startPositioning/2_startingPositioning.json +4 -0
  300. package/tests/js/resources/startPositioning/3_calculating.json +4 -0
  301. package/tests/js/resources/startPositioning/4_position.json +48 -0
  302. package/tests/js/resources/startPositioning/5_position.json +48 -0
  303. package/tests/js/test.js +416 -0
  304. package/tests/scripts/clean_android_resources.sh +3 -0
  305. package/tests/scripts/clean_ios_resources.sh +3 -0
  306. package/tests/scripts/copy_android_resources.sh +3 -0
  307. package/tests/scripts/copy_ios_resources.sh +3 -0
  308. package/tests/scripts/self-destruct.sh +1 -0
  309. package/www/android/Interfaces.js +742 -0
  310. package/www/android/situm.js +296 -0
  311. package/www/ios/situm.js +99 -0
  312. package/www/map-view-controller.js +223 -0
  313. package/www/map-view.js +88 -0
@@ -0,0 +1,530 @@
1
+ {
2
+ "lastStep": {
3
+ "isFirst": false,
4
+ "distance": 7,
5
+ "isLast": true,
6
+ "distanceToGoal": 7,
7
+ "from": {
8
+ "coordinate": {
9
+ "latitude": 12.299773106685375,
10
+ "longitude": 13.999841424080985
11
+ },
12
+ "floorIdentifier": "12",
13
+ "cartesianCoordinate": {
14
+ "x": 3,
15
+ "y": 5
16
+ },
17
+ "isIndoor": true,
18
+ "buildingIdentifier": "-1",
19
+ "isOutdoor": false
20
+ },
21
+ "id": 3,
22
+ "TO": {
23
+ "coordinate": {
24
+ "latitude": 2,
25
+ "longitude": 5
26
+ },
27
+ "floorIdentifier": "-1",
28
+ "cartesianCoordinate": {
29
+ "x": 0,
30
+ "y": 0
31
+ },
32
+ "isIndoor": false,
33
+ "buildingIdentifier": "101",
34
+ "isOutdoor": true
35
+ }
36
+ },
37
+ "firstStep": {
38
+ "isFirst": true,
39
+ "distance": 11.4,
40
+ "isLast": false,
41
+ "distanceToGoal": 27,
42
+ "from": {
43
+ "coordinate": {
44
+ "latitude": 12.29979118583395,
45
+ "longitude": 13.999850616887485
46
+ },
47
+ "floorIdentifier": "12",
48
+ "cartesianCoordinate": {
49
+ "x": 4,
50
+ "y": 7
51
+ },
52
+ "isIndoor": true,
53
+ "buildingIdentifier": "-1",
54
+ "isOutdoor": false
55
+ },
56
+ "id": 1,
57
+ "TO": {
58
+ "coordinate": {
59
+ "latitude": 12.299782146259663,
60
+ "longitude": 13.999869002500485
61
+ },
62
+ "floorIdentifier": "12",
63
+ "cartesianCoordinate": {
64
+ "x": 6,
65
+ "y": 6
66
+ },
67
+ "isIndoor": true,
68
+ "buildingIdentifier": "-1",
69
+ "isOutdoor": false
70
+ }
71
+ },
72
+ "indications": [
73
+ {
74
+ "orientationType": "BACKWARD",
75
+ "orientation": 14.5,
76
+ "stepIdxDestination": 5,
77
+ "distance": 11.4,
78
+ "stepIdxOrigin": 4,
79
+ "indicationType": "TURN",
80
+ "distanceToNextLevel": 15,
81
+ "neededLevelChange": true
82
+ },
83
+ {
84
+ "orientationType": "STRAIGHT",
85
+ "orientation": 3.5,
86
+ "stepIdxDestination": 5,
87
+ "distance": 8.6,
88
+ "stepIdxOrigin": 4,
89
+ "indicationType": "GO_AHEAD",
90
+ "distanceToNextLevel": 24,
91
+ "neededLevelChange": true
92
+ },
93
+ {
94
+ "orientationType": "LEFT",
95
+ "orientation": 3.5,
96
+ "stepIdxDestination": 5,
97
+ "distance": 7,
98
+ "stepIdxOrigin": 4,
99
+ "indicationType": "END",
100
+ "distanceToNextLevel": 30,
101
+ "neededLevelChange": true
102
+ }
103
+ ],
104
+ "nodes": [
105
+ {
106
+ "coordinate": {
107
+ "latitude": 12.29979118583395,
108
+ "longitude": 13.999850616887485
109
+ },
110
+ "floorIdentifier": "12",
111
+ "cartesianCoordinate": {
112
+ "x": 4,
113
+ "y": 7
114
+ },
115
+ "isIndoor": true,
116
+ "buildingIdentifier": "-1",
117
+ "isOutdoor": false
118
+ },
119
+ {
120
+ "coordinate": {
121
+ "latitude": 12.299782146259663,
122
+ "longitude": 13.999869002500485
123
+ },
124
+ "floorIdentifier": "12",
125
+ "cartesianCoordinate": {
126
+ "x": 6,
127
+ "y": 6
128
+ },
129
+ "isIndoor": true,
130
+ "buildingIdentifier": "-1",
131
+ "isOutdoor": false
132
+ },
133
+ {
134
+ "coordinate": {
135
+ "latitude": 12.299773106685375,
136
+ "longitude": 13.999841424080985
137
+ },
138
+ "floorIdentifier": "12",
139
+ "cartesianCoordinate": {
140
+ "x": 3,
141
+ "y": 5
142
+ },
143
+ "isIndoor": true,
144
+ "buildingIdentifier": "-1",
145
+ "isOutdoor": false
146
+ },
147
+ {
148
+ "coordinate": {
149
+ "latitude": 2,
150
+ "longitude": 5
151
+ },
152
+ "floorIdentifier": "-1",
153
+ "cartesianCoordinate": {
154
+ "x": 0,
155
+ "y": 0
156
+ },
157
+ "isIndoor": false,
158
+ "buildingIdentifier": "101",
159
+ "isOutdoor": true
160
+ }
161
+ ],
162
+ "edges": [
163
+ {
164
+ "isFirst": true,
165
+ "distance": 11.4,
166
+ "isLast": false,
167
+ "distanceToGoal": 27,
168
+ "from": {
169
+ "coordinate": {
170
+ "latitude": 12.29979118583395,
171
+ "longitude": 13.999850616887485
172
+ },
173
+ "floorIdentifier": "12",
174
+ "cartesianCoordinate": {
175
+ "x": 4,
176
+ "y": 7
177
+ },
178
+ "isIndoor": true,
179
+ "buildingIdentifier": "-1",
180
+ "isOutdoor": false
181
+ },
182
+ "id": 1,
183
+ "TO": {
184
+ "coordinate": {
185
+ "latitude": 12.299782146259663,
186
+ "longitude": 13.999869002500485
187
+ },
188
+ "floorIdentifier": "12",
189
+ "cartesianCoordinate": {
190
+ "x": 6,
191
+ "y": 6
192
+ },
193
+ "isIndoor": true,
194
+ "buildingIdentifier": "-1",
195
+ "isOutdoor": false
196
+ }
197
+ },
198
+ {
199
+ "isFirst": false,
200
+ "distance": 8.6,
201
+ "isLast": false,
202
+ "distanceToGoal": 15.6,
203
+ "from": {
204
+ "coordinate": {
205
+ "latitude": 12.299782146259663,
206
+ "longitude": 13.999869002500485
207
+ },
208
+ "floorIdentifier": "12",
209
+ "cartesianCoordinate": {
210
+ "x": 6,
211
+ "y": 6
212
+ },
213
+ "isIndoor": true,
214
+ "buildingIdentifier": "-1",
215
+ "isOutdoor": false
216
+ },
217
+ "id": 2,
218
+ "TO": {
219
+ "coordinate": {
220
+ "latitude": 12.299773106685375,
221
+ "longitude": 13.999841424080985
222
+ },
223
+ "floorIdentifier": "12",
224
+ "cartesianCoordinate": {
225
+ "x": 3,
226
+ "y": 5
227
+ },
228
+ "isIndoor": true,
229
+ "buildingIdentifier": "-1",
230
+ "isOutdoor": false
231
+ }
232
+ },
233
+ {
234
+ "isFirst": false,
235
+ "distance": 7,
236
+ "isLast": true,
237
+ "distanceToGoal": 7,
238
+ "from": {
239
+ "coordinate": {
240
+ "latitude": 12.299773106685375,
241
+ "longitude": 13.999841424080985
242
+ },
243
+ "floorIdentifier": "12",
244
+ "cartesianCoordinate": {
245
+ "x": 3,
246
+ "y": 5
247
+ },
248
+ "isIndoor": true,
249
+ "buildingIdentifier": "-1",
250
+ "isOutdoor": false
251
+ },
252
+ "id": 3,
253
+ "TO": {
254
+ "coordinate": {
255
+ "latitude": 2,
256
+ "longitude": 5
257
+ },
258
+ "floorIdentifier": "-1",
259
+ "cartesianCoordinate": {
260
+ "x": 0,
261
+ "y": 0
262
+ },
263
+ "isIndoor": false,
264
+ "buildingIdentifier": "101",
265
+ "isOutdoor": true
266
+ }
267
+ }
268
+ ],
269
+ "from": {
270
+ "coordinate": {
271
+ "latitude": 12.29979118583395,
272
+ "longitude": 13.999850616887485
273
+ },
274
+ "floorIdentifier": "12",
275
+ "cartesianCoordinate": {
276
+ "x": 4,
277
+ "y": 7
278
+ },
279
+ "isIndoor": true,
280
+ "buildingIdentifier": "-1",
281
+ "isOutdoor": false
282
+ },
283
+ "TO": {
284
+ "coordinate": {
285
+ "latitude": 12.299773106685375,
286
+ "longitude": 13.999832231274485
287
+ },
288
+ "floorIdentifier": "12",
289
+ "cartesianCoordinate": {
290
+ "x": 2,
291
+ "y": 5
292
+ },
293
+ "isIndoor": true,
294
+ "buildingIdentifier": "-1",
295
+ "isOutdoor": false
296
+ },
297
+ "steps": [
298
+ {
299
+ "isFirst": true,
300
+ "distance": 11.4,
301
+ "isLast": false,
302
+ "distanceToGoal": 27,
303
+ "from": {
304
+ "coordinate": {
305
+ "latitude": 12.29979118583395,
306
+ "longitude": 13.999850616887485
307
+ },
308
+ "floorIdentifier": "12",
309
+ "cartesianCoordinate": {
310
+ "x": 4,
311
+ "y": 7
312
+ },
313
+ "isIndoor": true,
314
+ "buildingIdentifier": "-1",
315
+ "isOutdoor": false
316
+ },
317
+ "id": 1,
318
+ "TO": {
319
+ "coordinate": {
320
+ "latitude": 12.299782146259663,
321
+ "longitude": 13.999869002500485
322
+ },
323
+ "floorIdentifier": "12",
324
+ "cartesianCoordinate": {
325
+ "x": 6,
326
+ "y": 6
327
+ },
328
+ "isIndoor": true,
329
+ "buildingIdentifier": "-1",
330
+ "isOutdoor": false
331
+ }
332
+ },
333
+ {
334
+ "isFirst": false,
335
+ "distance": 8.6,
336
+ "isLast": false,
337
+ "distanceToGoal": 15.6,
338
+ "from": {
339
+ "coordinate": {
340
+ "latitude": 12.299782146259663,
341
+ "longitude": 13.999869002500485
342
+ },
343
+ "floorIdentifier": "12",
344
+ "cartesianCoordinate": {
345
+ "x": 6,
346
+ "y": 6
347
+ },
348
+ "isIndoor": true,
349
+ "buildingIdentifier": "-1",
350
+ "isOutdoor": false
351
+ },
352
+ "id": 2,
353
+ "TO": {
354
+ "coordinate": {
355
+ "latitude": 12.299773106685375,
356
+ "longitude": 13.999841424080985
357
+ },
358
+ "floorIdentifier": "12",
359
+ "cartesianCoordinate": {
360
+ "x": 3,
361
+ "y": 5
362
+ },
363
+ "isIndoor": true,
364
+ "buildingIdentifier": "-1",
365
+ "isOutdoor": false
366
+ }
367
+ },
368
+ {
369
+ "isFirst": false,
370
+ "distance": 7,
371
+ "isLast": true,
372
+ "distanceToGoal": 7,
373
+ "from": {
374
+ "coordinate": {
375
+ "latitude": 12.299773106685375,
376
+ "longitude": 13.999841424080985
377
+ },
378
+ "floorIdentifier": "12",
379
+ "cartesianCoordinate": {
380
+ "x": 3,
381
+ "y": 5
382
+ },
383
+ "isIndoor": true,
384
+ "buildingIdentifier": "-1",
385
+ "isOutdoor": false
386
+ },
387
+ "id": 3,
388
+ "TO": {
389
+ "coordinate": {
390
+ "latitude": 2,
391
+ "longitude": 5
392
+ },
393
+ "floorIdentifier": "-1",
394
+ "cartesianCoordinate": {
395
+ "x": 0,
396
+ "y": 0
397
+ },
398
+ "isIndoor": false,
399
+ "buildingIdentifier": "101",
400
+ "isOutdoor": true
401
+ }
402
+ }
403
+ ],
404
+ "points": [
405
+ {
406
+ "coordinate": {
407
+ "latitude": 12.29979118583395,
408
+ "longitude": 13.999850616887485
409
+ },
410
+ "floorIdentifier": "12",
411
+ "cartesianCoordinate": {
412
+ "x": 4,
413
+ "y": 7
414
+ },
415
+ "isIndoor": true,
416
+ "buildingIdentifier": "-1",
417
+ "isOutdoor": false
418
+ },
419
+ {
420
+ "coordinate": {
421
+ "latitude": 12.299782146259663,
422
+ "longitude": 13.999869002500485
423
+ },
424
+ "floorIdentifier": "12",
425
+ "cartesianCoordinate": {
426
+ "x": 6,
427
+ "y": 6
428
+ },
429
+ "isIndoor": true,
430
+ "buildingIdentifier": "-1",
431
+ "isOutdoor": false
432
+ },
433
+ {
434
+ "coordinate": {
435
+ "latitude": 12.299773106685375,
436
+ "longitude": 13.999841424080985
437
+ },
438
+ "floorIdentifier": "12",
439
+ "cartesianCoordinate": {
440
+ "x": 3,
441
+ "y": 5
442
+ },
443
+ "isIndoor": true,
444
+ "buildingIdentifier": "-1",
445
+ "isOutdoor": false
446
+ },
447
+ {
448
+ "coordinate": {
449
+ "latitude": 2,
450
+ "longitude": 5
451
+ },
452
+ "floorIdentifier": "-1",
453
+ "cartesianCoordinate": {
454
+ "x": 0,
455
+ "y": 0
456
+ },
457
+ "isIndoor": false,
458
+ "buildingIdentifier": "101",
459
+ "isOutdoor": true
460
+ }
461
+ ],
462
+ "segments": [
463
+ {
464
+ "floorIdentifier" : "12",
465
+ "points" : [
466
+ {
467
+ "buildingIdentifier" : "-1",
468
+ "cartesianCoordinate" : {
469
+ "x" : 4,
470
+ "y" : 7
471
+ },
472
+ "coordinate" : {
473
+ "latitude" : 12.29979118583395,
474
+ "longitude" : 13.999850616887485
475
+ },
476
+ "floorIdentifier" : "12",
477
+ "isIndoor" : true,
478
+ "isOutdoor" : false
479
+ },
480
+ {
481
+ "buildingIdentifier" : "-1",
482
+ "cartesianCoordinate" : {
483
+ "x" : 6,
484
+ "y" : 6
485
+ },
486
+ "coordinate" : {
487
+ "latitude" : 12.299782146259663,
488
+ "longitude" : 13.999869002500485
489
+ },
490
+ "floorIdentifier" : "12",
491
+ "isIndoor" : true,
492
+ "isOutdoor" : false
493
+ },
494
+ {
495
+ "buildingIdentifier" : "-1",
496
+ "cartesianCoordinate" : {
497
+ "x" : 3,
498
+ "y" : 5
499
+ },
500
+ "coordinate" : {
501
+ "latitude" : 12.299773106685375,
502
+ "longitude" : 13.999841424080985
503
+ },
504
+ "floorIdentifier" : "12",
505
+ "isIndoor" : true,
506
+ "isOutdoor" : false
507
+ }
508
+ ]
509
+ },
510
+ {
511
+ "floorIdentifier" : "-1",
512
+ "points" : [
513
+ {
514
+ "buildingIdentifier" : "101",
515
+ "cartesianCoordinate" : {
516
+ "x" : 0,
517
+ "y" : 0
518
+ },
519
+ "coordinate" : {
520
+ "latitude" : 2,
521
+ "longitude" : 5
522
+ },
523
+ "floorIdentifier" : "-1",
524
+ "isIndoor" : false,
525
+ "isOutdoor" : true
526
+ }
527
+ ]
528
+ }
529
+ ]
530
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "isFirst": false,
3
+ "distance": 23.4,
4
+ "isLast": false,
5
+ "distanceToGoal": 27,
6
+ "from": {
7
+ "coordinate": {
8
+ "latitude": 2,
9
+ "longitude": 5
10
+ },
11
+ "floorIdentifier": "-1",
12
+ "cartesianCoordinate": {
13
+ "x": 0,
14
+ "y": 0
15
+ },
16
+ "isIndoor": false,
17
+ "buildingIdentifier": "-1",
18
+ "isOutdoor": true
19
+ },
20
+ "id": 2,
21
+ "TO": {
22
+ "coordinate": {
23
+ "latitude": 3,
24
+ "longitude": 4
25
+ },
26
+ "floorIdentifier": "-1",
27
+ "cartesianCoordinate": {
28
+ "x": 0,
29
+ "y": 0
30
+ },
31
+ "isIndoor": false,
32
+ "buildingIdentifier": "-1",
33
+ "isOutdoor": true
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "isFirst": false,
3
+ "distance": 23.4,
4
+ "isLast": false,
5
+ "distanceToGoal": 27,
6
+ "from": {
7
+ "coordinate": {
8
+ "latitude": 2,
9
+ "longitude": 5
10
+ },
11
+ "floorIdentifier": "-1",
12
+ "cartesianCoordinate": {
13
+ "x": 0,
14
+ "y": 0
15
+ },
16
+ "isIndoor": false,
17
+ "buildingIdentifier": "101",
18
+ "isOutdoor": true
19
+ },
20
+ "id": 2,
21
+ "TO": {
22
+ "coordinate": {
23
+ "latitude": 3,
24
+ "longitude": 4
25
+ },
26
+ "floorIdentifier": "-1",
27
+ "cartesianCoordinate": {
28
+ "x": 0,
29
+ "y": 0
30
+ },
31
+ "isIndoor": false,
32
+ "buildingIdentifier": "101",
33
+ "isOutdoor": true
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "isFirst": false,
3
+ "distance": 23.4,
4
+ "isLast": false,
5
+ "distanceToGoal": 27,
6
+ "from": {
7
+ "coordinate": {
8
+ "latitude": 0,
9
+ "longitude": 0
10
+ },
11
+ "floorIdentifier": "12",
12
+ "cartesianCoordinate": {
13
+ "x": 3,
14
+ "y": 5
15
+ },
16
+ "isIndoor": true,
17
+ "buildingIdentifier": "101",
18
+ "isOutdoor": false
19
+ },
20
+ "id": 2,
21
+ "TO": {
22
+ "coordinate": {
23
+ "latitude": 0,
24
+ "longitude": 0
25
+ },
26
+ "floorIdentifier": "12",
27
+ "cartesianCoordinate": {
28
+ "x": 3,
29
+ "y": 4
30
+ },
31
+ "isIndoor": true,
32
+ "buildingIdentifier": "101",
33
+ "isOutdoor": false
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "isFirst": false,
3
+ "distance": 23.4,
4
+ "isLast": false,
5
+ "distanceToGoal": 27,
6
+ "from": {
7
+ "coordinate": {
8
+ "latitude": 12.299773106685375,
9
+ "longitude": 13.999841424080985
10
+ },
11
+ "floorIdentifier": "12",
12
+ "cartesianCoordinate": {
13
+ "x": 3,
14
+ "y": 5
15
+ },
16
+ "isIndoor": true,
17
+ "buildingIdentifier": "-1",
18
+ "isOutdoor": false
19
+ },
20
+ "id": 2,
21
+ "TO": {
22
+ "coordinate": {
23
+ "latitude": 12.299764067111086,
24
+ "longitude": 13.999841424080985
25
+ },
26
+ "floorIdentifier": "12",
27
+ "cartesianCoordinate": {
28
+ "x": 3,
29
+ "y": 4
30
+ },
31
+ "isIndoor": true,
32
+ "buildingIdentifier": "-1",
33
+ "isOutdoor": false
34
+ }
35
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "isFirst": false,
3
+ "distance": 23.4,
4
+ "isLast": false,
5
+ "distanceToGoal": 27,
6
+ "from": {
7
+ "coordinate": {
8
+ "latitude": 12.299773106685375,
9
+ "longitude": 13.999841424080985
10
+ },
11
+ "floorIdentifier": "12",
12
+ "cartesianCoordinate": {
13
+ "x": 3,
14
+ "y": 5
15
+ },
16
+ "isIndoor": true,
17
+ "buildingIdentifier": "-1",
18
+ "isOutdoor": false
19
+ },
20
+ "id": 2,
21
+ "TO": {
22
+ "coordinate": {
23
+ "latitude": 12.299764067111086,
24
+ "longitude": 13.999841424080985
25
+ },
26
+ "floorIdentifier": "12",
27
+ "cartesianCoordinate": {
28
+ "x": 3,
29
+ "y": 4
30
+ },
31
+ "isIndoor": true,
32
+ "buildingIdentifier": "-1",
33
+ "isOutdoor": false
34
+ }
35
+ }