Browse Source

Script final que calcula y manda parada mas cercana

Kendrick Morales 5 years ago
parent
commit
0a737ce8e0

+ 0
- 343
Trolley App.xcodeproj/project.pbxproj View File

@@ -1,343 +0,0 @@
1
-// !$*UTF8*$!
2
-{
3
-	archiveVersion = 1;
4
-	classes = {
5
-	};
6
-	objectVersion = 50;
7
-	objects = {
8
-
9
-/* Begin PBXBuildFile section */
10
-		5B319F00235DDC06009AD1A9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B319EFF235DDC06009AD1A9 /* AppDelegate.swift */; };
11
-		5B319F02235DDC06009AD1A9 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B319F01235DDC06009AD1A9 /* SceneDelegate.swift */; };
12
-		5B319F04235DDC06009AD1A9 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B319F03235DDC06009AD1A9 /* ViewController.swift */; };
13
-		5B319F07235DDC06009AD1A9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5B319F05235DDC06009AD1A9 /* Main.storyboard */; };
14
-		5B319F09235DDC07009AD1A9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5B319F08235DDC07009AD1A9 /* Assets.xcassets */; };
15
-		5B319F0C235DDC07009AD1A9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5B319F0A235DDC07009AD1A9 /* LaunchScreen.storyboard */; };
16
-/* End PBXBuildFile section */
17
-
18
-/* Begin PBXFileReference section */
19
-		5B319EFC235DDC06009AD1A9 /* Trolley App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Trolley App.app"; sourceTree = BUILT_PRODUCTS_DIR; };
20
-		5B319EFF235DDC06009AD1A9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
21
-		5B319F01235DDC06009AD1A9 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
22
-		5B319F03235DDC06009AD1A9 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
23
-		5B319F06235DDC06009AD1A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
24
-		5B319F08235DDC07009AD1A9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
25
-		5B319F0B235DDC07009AD1A9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
26
-		5B319F0D235DDC07009AD1A9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
27
-/* End PBXFileReference section */
28
-
29
-/* Begin PBXFrameworksBuildPhase section */
30
-		5B319EF9235DDC06009AD1A9 /* Frameworks */ = {
31
-			isa = PBXFrameworksBuildPhase;
32
-			buildActionMask = 2147483647;
33
-			files = (
34
-			);
35
-			runOnlyForDeploymentPostprocessing = 0;
36
-		};
37
-/* End PBXFrameworksBuildPhase section */
38
-
39
-/* Begin PBXGroup section */
40
-		5B319EF3235DDC06009AD1A9 = {
41
-			isa = PBXGroup;
42
-			children = (
43
-				5B319EFE235DDC06009AD1A9 /* Trolley App */,
44
-				5B319EFD235DDC06009AD1A9 /* Products */,
45
-			);
46
-			sourceTree = "<group>";
47
-		};
48
-		5B319EFD235DDC06009AD1A9 /* Products */ = {
49
-			isa = PBXGroup;
50
-			children = (
51
-				5B319EFC235DDC06009AD1A9 /* Trolley App.app */,
52
-			);
53
-			name = Products;
54
-			sourceTree = "<group>";
55
-		};
56
-		5B319EFE235DDC06009AD1A9 /* Trolley App */ = {
57
-			isa = PBXGroup;
58
-			children = (
59
-				5B319EFF235DDC06009AD1A9 /* AppDelegate.swift */,
60
-				5B319F01235DDC06009AD1A9 /* SceneDelegate.swift */,
61
-				5B319F03235DDC06009AD1A9 /* ViewController.swift */,
62
-				5B319F05235DDC06009AD1A9 /* Main.storyboard */,
63
-				5B319F08235DDC07009AD1A9 /* Assets.xcassets */,
64
-				5B319F0A235DDC07009AD1A9 /* LaunchScreen.storyboard */,
65
-				5B319F0D235DDC07009AD1A9 /* Info.plist */,
66
-			);
67
-			path = "Trolley App";
68
-			sourceTree = "<group>";
69
-		};
70
-/* End PBXGroup section */
71
-
72
-/* Begin PBXNativeTarget section */
73
-		5B319EFB235DDC06009AD1A9 /* Trolley App */ = {
74
-			isa = PBXNativeTarget;
75
-			buildConfigurationList = 5B319F10235DDC07009AD1A9 /* Build configuration list for PBXNativeTarget "Trolley App" */;
76
-			buildPhases = (
77
-				5B319EF8235DDC06009AD1A9 /* Sources */,
78
-				5B319EF9235DDC06009AD1A9 /* Frameworks */,
79
-				5B319EFA235DDC06009AD1A9 /* Resources */,
80
-			);
81
-			buildRules = (
82
-			);
83
-			dependencies = (
84
-			);
85
-			name = "Trolley App";
86
-			productName = "Trolley App";
87
-			productReference = 5B319EFC235DDC06009AD1A9 /* Trolley App.app */;
88
-			productType = "com.apple.product-type.application";
89
-		};
90
-/* End PBXNativeTarget section */
91
-
92
-/* Begin PBXProject section */
93
-		5B319EF4235DDC06009AD1A9 /* Project object */ = {
94
-			isa = PBXProject;
95
-			attributes = {
96
-				LastSwiftUpdateCheck = 1110;
97
-				LastUpgradeCheck = 1110;
98
-				ORGANIZATIONNAME = "Kendrick Morales";
99
-				TargetAttributes = {
100
-					5B319EFB235DDC06009AD1A9 = {
101
-						CreatedOnToolsVersion = 11.1;
102
-					};
103
-				};
104
-			};
105
-			buildConfigurationList = 5B319EF7235DDC06009AD1A9 /* Build configuration list for PBXProject "Trolley App" */;
106
-			compatibilityVersion = "Xcode 9.3";
107
-			developmentRegion = en;
108
-			hasScannedForEncodings = 0;
109
-			knownRegions = (
110
-				en,
111
-				Base,
112
-			);
113
-			mainGroup = 5B319EF3235DDC06009AD1A9;
114
-			productRefGroup = 5B319EFD235DDC06009AD1A9 /* Products */;
115
-			projectDirPath = "";
116
-			projectRoot = "";
117
-			targets = (
118
-				5B319EFB235DDC06009AD1A9 /* Trolley App */,
119
-			);
120
-		};
121
-/* End PBXProject section */
122
-
123
-/* Begin PBXResourcesBuildPhase section */
124
-		5B319EFA235DDC06009AD1A9 /* Resources */ = {
125
-			isa = PBXResourcesBuildPhase;
126
-			buildActionMask = 2147483647;
127
-			files = (
128
-				5B319F0C235DDC07009AD1A9 /* LaunchScreen.storyboard in Resources */,
129
-				5B319F09235DDC07009AD1A9 /* Assets.xcassets in Resources */,
130
-				5B319F07235DDC06009AD1A9 /* Main.storyboard in Resources */,
131
-			);
132
-			runOnlyForDeploymentPostprocessing = 0;
133
-		};
134
-/* End PBXResourcesBuildPhase section */
135
-
136
-/* Begin PBXSourcesBuildPhase section */
137
-		5B319EF8235DDC06009AD1A9 /* Sources */ = {
138
-			isa = PBXSourcesBuildPhase;
139
-			buildActionMask = 2147483647;
140
-			files = (
141
-				5B319F04235DDC06009AD1A9 /* ViewController.swift in Sources */,
142
-				5B319F00235DDC06009AD1A9 /* AppDelegate.swift in Sources */,
143
-				5B319F02235DDC06009AD1A9 /* SceneDelegate.swift in Sources */,
144
-			);
145
-			runOnlyForDeploymentPostprocessing = 0;
146
-		};
147
-/* End PBXSourcesBuildPhase section */
148
-
149
-/* Begin PBXVariantGroup section */
150
-		5B319F05235DDC06009AD1A9 /* Main.storyboard */ = {
151
-			isa = PBXVariantGroup;
152
-			children = (
153
-				5B319F06235DDC06009AD1A9 /* Base */,
154
-			);
155
-			name = Main.storyboard;
156
-			sourceTree = "<group>";
157
-		};
158
-		5B319F0A235DDC07009AD1A9 /* LaunchScreen.storyboard */ = {
159
-			isa = PBXVariantGroup;
160
-			children = (
161
-				5B319F0B235DDC07009AD1A9 /* Base */,
162
-			);
163
-			name = LaunchScreen.storyboard;
164
-			sourceTree = "<group>";
165
-		};
166
-/* End PBXVariantGroup section */
167
-
168
-/* Begin XCBuildConfiguration section */
169
-		5B319F0E235DDC07009AD1A9 /* Debug */ = {
170
-			isa = XCBuildConfiguration;
171
-			buildSettings = {
172
-				ALWAYS_SEARCH_USER_PATHS = NO;
173
-				CLANG_ANALYZER_NONNULL = YES;
174
-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
175
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
176
-				CLANG_CXX_LIBRARY = "libc++";
177
-				CLANG_ENABLE_MODULES = YES;
178
-				CLANG_ENABLE_OBJC_ARC = YES;
179
-				CLANG_ENABLE_OBJC_WEAK = YES;
180
-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
181
-				CLANG_WARN_BOOL_CONVERSION = YES;
182
-				CLANG_WARN_COMMA = YES;
183
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
184
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
185
-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
186
-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
187
-				CLANG_WARN_EMPTY_BODY = YES;
188
-				CLANG_WARN_ENUM_CONVERSION = YES;
189
-				CLANG_WARN_INFINITE_RECURSION = YES;
190
-				CLANG_WARN_INT_CONVERSION = YES;
191
-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
192
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
193
-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
194
-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
195
-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
196
-				CLANG_WARN_STRICT_PROTOTYPES = YES;
197
-				CLANG_WARN_SUSPICIOUS_MOVE = YES;
198
-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
199
-				CLANG_WARN_UNREACHABLE_CODE = YES;
200
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
201
-				COPY_PHASE_STRIP = NO;
202
-				DEBUG_INFORMATION_FORMAT = dwarf;
203
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
204
-				ENABLE_TESTABILITY = YES;
205
-				GCC_C_LANGUAGE_STANDARD = gnu11;
206
-				GCC_DYNAMIC_NO_PIC = NO;
207
-				GCC_NO_COMMON_BLOCKS = YES;
208
-				GCC_OPTIMIZATION_LEVEL = 0;
209
-				GCC_PREPROCESSOR_DEFINITIONS = (
210
-					"DEBUG=1",
211
-					"$(inherited)",
212
-				);
213
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
214
-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
215
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
216
-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
217
-				GCC_WARN_UNUSED_FUNCTION = YES;
218
-				GCC_WARN_UNUSED_VARIABLE = YES;
219
-				IPHONEOS_DEPLOYMENT_TARGET = 13.1;
220
-				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
221
-				MTL_FAST_MATH = YES;
222
-				ONLY_ACTIVE_ARCH = YES;
223
-				SDKROOT = iphoneos;
224
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
225
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
226
-			};
227
-			name = Debug;
228
-		};
229
-		5B319F0F235DDC07009AD1A9 /* Release */ = {
230
-			isa = XCBuildConfiguration;
231
-			buildSettings = {
232
-				ALWAYS_SEARCH_USER_PATHS = NO;
233
-				CLANG_ANALYZER_NONNULL = YES;
234
-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
235
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
236
-				CLANG_CXX_LIBRARY = "libc++";
237
-				CLANG_ENABLE_MODULES = YES;
238
-				CLANG_ENABLE_OBJC_ARC = YES;
239
-				CLANG_ENABLE_OBJC_WEAK = YES;
240
-				CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
241
-				CLANG_WARN_BOOL_CONVERSION = YES;
242
-				CLANG_WARN_COMMA = YES;
243
-				CLANG_WARN_CONSTANT_CONVERSION = YES;
244
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
245
-				CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
246
-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
247
-				CLANG_WARN_EMPTY_BODY = YES;
248
-				CLANG_WARN_ENUM_CONVERSION = YES;
249
-				CLANG_WARN_INFINITE_RECURSION = YES;
250
-				CLANG_WARN_INT_CONVERSION = YES;
251
-				CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
252
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
253
-				CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
254
-				CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
255
-				CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
256
-				CLANG_WARN_STRICT_PROTOTYPES = YES;
257
-				CLANG_WARN_SUSPICIOUS_MOVE = YES;
258
-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
259
-				CLANG_WARN_UNREACHABLE_CODE = YES;
260
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
261
-				COPY_PHASE_STRIP = NO;
262
-				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
263
-				ENABLE_NS_ASSERTIONS = NO;
264
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
265
-				GCC_C_LANGUAGE_STANDARD = gnu11;
266
-				GCC_NO_COMMON_BLOCKS = YES;
267
-				GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
268
-				GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
269
-				GCC_WARN_UNDECLARED_SELECTOR = YES;
270
-				GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
271
-				GCC_WARN_UNUSED_FUNCTION = YES;
272
-				GCC_WARN_UNUSED_VARIABLE = YES;
273
-				IPHONEOS_DEPLOYMENT_TARGET = 13.1;
274
-				MTL_ENABLE_DEBUG_INFO = NO;
275
-				MTL_FAST_MATH = YES;
276
-				SDKROOT = iphoneos;
277
-				SWIFT_COMPILATION_MODE = wholemodule;
278
-				SWIFT_OPTIMIZATION_LEVEL = "-O";
279
-				VALIDATE_PRODUCT = YES;
280
-			};
281
-			name = Release;
282
-		};
283
-		5B319F11235DDC07009AD1A9 /* Debug */ = {
284
-			isa = XCBuildConfiguration;
285
-			buildSettings = {
286
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
287
-				CODE_SIGN_STYLE = Automatic;
288
-				DEVELOPMENT_TEAM = H67NFWVH5W;
289
-				INFOPLIST_FILE = "Trolley App/Info.plist";
290
-				LD_RUNPATH_SEARCH_PATHS = (
291
-					"$(inherited)",
292
-					"@executable_path/Frameworks",
293
-				);
294
-				PRODUCT_BUNDLE_IDENTIFIER = "com.uprrp.Trolley-App";
295
-				PRODUCT_NAME = "$(TARGET_NAME)";
296
-				SWIFT_VERSION = 5.0;
297
-				TARGETED_DEVICE_FAMILY = 1;
298
-			};
299
-			name = Debug;
300
-		};
301
-		5B319F12235DDC07009AD1A9 /* Release */ = {
302
-			isa = XCBuildConfiguration;
303
-			buildSettings = {
304
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
305
-				CODE_SIGN_STYLE = Automatic;
306
-				DEVELOPMENT_TEAM = H67NFWVH5W;
307
-				INFOPLIST_FILE = "Trolley App/Info.plist";
308
-				LD_RUNPATH_SEARCH_PATHS = (
309
-					"$(inherited)",
310
-					"@executable_path/Frameworks",
311
-				);
312
-				PRODUCT_BUNDLE_IDENTIFIER = "com.uprrp.Trolley-App";
313
-				PRODUCT_NAME = "$(TARGET_NAME)";
314
-				SWIFT_VERSION = 5.0;
315
-				TARGETED_DEVICE_FAMILY = 1;
316
-			};
317
-			name = Release;
318
-		};
319
-/* End XCBuildConfiguration section */
320
-
321
-/* Begin XCConfigurationList section */
322
-		5B319EF7235DDC06009AD1A9 /* Build configuration list for PBXProject "Trolley App" */ = {
323
-			isa = XCConfigurationList;
324
-			buildConfigurations = (
325
-				5B319F0E235DDC07009AD1A9 /* Debug */,
326
-				5B319F0F235DDC07009AD1A9 /* Release */,
327
-			);
328
-			defaultConfigurationIsVisible = 0;
329
-			defaultConfigurationName = Release;
330
-		};
331
-		5B319F10235DDC07009AD1A9 /* Build configuration list for PBXNativeTarget "Trolley App" */ = {
332
-			isa = XCConfigurationList;
333
-			buildConfigurations = (
334
-				5B319F11235DDC07009AD1A9 /* Debug */,
335
-				5B319F12235DDC07009AD1A9 /* Release */,
336
-			);
337
-			defaultConfigurationIsVisible = 0;
338
-			defaultConfigurationName = Release;
339
-		};
340
-/* End XCConfigurationList section */
341
-	};
342
-	rootObject = 5B319EF4235DDC06009AD1A9 /* Project object */;
343
-}

+ 0
- 7
Trolley App.xcodeproj/project.xcworkspace/contents.xcworkspacedata View File

@@ -1,7 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<Workspace
3
-   version = "1.0">
4
-   <FileRef
5
-      location = "self:Trolley App.xcodeproj">
6
-   </FileRef>
7
-</Workspace>

+ 0
- 8
Trolley App.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist View File

@@ -1,8 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-	<key>IDEDidComputeMac32BitWarning</key>
6
-	<true/>
7
-</dict>
8
-</plist>

+ 0
- 14
Trolley App.xcodeproj/xcuserdata/kendrickmorales.xcuserdatad/xcschemes/xcschememanagement.plist View File

@@ -1,14 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-	<key>SchemeUserState</key>
6
-	<dict>
7
-		<key>Trolley App.xcscheme_^#shared#^_</key>
8
-		<dict>
9
-			<key>orderHint</key>
10
-			<integer>0</integer>
11
-		</dict>
12
-	</dict>
13
-</dict>
14
-</plist>

+ 0
- 37
Trolley App/AppDelegate.swift View File

@@ -1,37 +0,0 @@
1
-//
2
-//  AppDelegate.swift
3
-//  Trolley App
4
-//
5
-//  Created by Kendrick Morales on 10/21/19.
6
-//  Copyright © 2019 Kendrick Morales. All rights reserved.
7
-//
8
-
9
-import UIKit
10
-
11
-@UIApplicationMain
12
-class AppDelegate: UIResponder, UIApplicationDelegate {
13
-
14
-
15
-
16
-    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
17
-        // Override point for customization after application launch.
18
-        return true
19
-    }
20
-
21
-    // MARK: UISceneSession Lifecycle
22
-
23
-    func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
24
-        // Called when a new scene session is being created.
25
-        // Use this method to select a configuration to create the new scene with.
26
-        return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
27
-    }
28
-
29
-    func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
30
-        // Called when the user discards a scene session.
31
-        // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
32
-        // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
33
-    }
34
-
35
-
36
-}
37
-

+ 0
- 98
Trolley App/Assets.xcassets/AppIcon.appiconset/Contents.json View File

@@ -1,98 +0,0 @@
1
-{
2
-  "images" : [
3
-    {
4
-      "idiom" : "iphone",
5
-      "size" : "20x20",
6
-      "scale" : "2x"
7
-    },
8
-    {
9
-      "idiom" : "iphone",
10
-      "size" : "20x20",
11
-      "scale" : "3x"
12
-    },
13
-    {
14
-      "idiom" : "iphone",
15
-      "size" : "29x29",
16
-      "scale" : "2x"
17
-    },
18
-    {
19
-      "idiom" : "iphone",
20
-      "size" : "29x29",
21
-      "scale" : "3x"
22
-    },
23
-    {
24
-      "idiom" : "iphone",
25
-      "size" : "40x40",
26
-      "scale" : "2x"
27
-    },
28
-    {
29
-      "idiom" : "iphone",
30
-      "size" : "40x40",
31
-      "scale" : "3x"
32
-    },
33
-    {
34
-      "idiom" : "iphone",
35
-      "size" : "60x60",
36
-      "scale" : "2x"
37
-    },
38
-    {
39
-      "idiom" : "iphone",
40
-      "size" : "60x60",
41
-      "scale" : "3x"
42
-    },
43
-    {
44
-      "idiom" : "ipad",
45
-      "size" : "20x20",
46
-      "scale" : "1x"
47
-    },
48
-    {
49
-      "idiom" : "ipad",
50
-      "size" : "20x20",
51
-      "scale" : "2x"
52
-    },
53
-    {
54
-      "idiom" : "ipad",
55
-      "size" : "29x29",
56
-      "scale" : "1x"
57
-    },
58
-    {
59
-      "idiom" : "ipad",
60
-      "size" : "29x29",
61
-      "scale" : "2x"
62
-    },
63
-    {
64
-      "idiom" : "ipad",
65
-      "size" : "40x40",
66
-      "scale" : "1x"
67
-    },
68
-    {
69
-      "idiom" : "ipad",
70
-      "size" : "40x40",
71
-      "scale" : "2x"
72
-    },
73
-    {
74
-      "idiom" : "ipad",
75
-      "size" : "76x76",
76
-      "scale" : "1x"
77
-    },
78
-    {
79
-      "idiom" : "ipad",
80
-      "size" : "76x76",
81
-      "scale" : "2x"
82
-    },
83
-    {
84
-      "idiom" : "ipad",
85
-      "size" : "83.5x83.5",
86
-      "scale" : "2x"
87
-    },
88
-    {
89
-      "idiom" : "ios-marketing",
90
-      "size" : "1024x1024",
91
-      "scale" : "1x"
92
-    }
93
-  ],
94
-  "info" : {
95
-    "version" : 1,
96
-    "author" : "xcode"
97
-  }
98
-}

+ 0
- 6
Trolley App/Assets.xcassets/Contents.json View File

@@ -1,6 +0,0 @@
1
-{
2
-  "info" : {
3
-    "version" : 1,
4
-    "author" : "xcode"
5
-  }
6
-}

+ 0
- 23
Trolley App/Assets.xcassets/map.imageset/Contents.json View File

@@ -1,23 +0,0 @@
1
-{
2
-  "images" : [
3
-    {
4
-      "idiom" : "universal",
5
-      "filename" : "map.jpg",
6
-      "scale" : "1x"
7
-    },
8
-    {
9
-      "idiom" : "universal",
10
-      "filename" : "map@2x.jpg",
11
-      "scale" : "2x"
12
-    },
13
-    {
14
-      "idiom" : "universal",
15
-      "filename" : "map@3x.jpg",
16
-      "scale" : "3x"
17
-    }
18
-  ],
19
-  "info" : {
20
-    "version" : 1,
21
-    "author" : "xcode"
22
-  }
23
-}

BIN
Trolley App/Assets.xcassets/map.imageset/map.jpg View File


BIN
Trolley App/Assets.xcassets/map.imageset/map@2x.jpg View File


BIN
Trolley App/Assets.xcassets/map.imageset/map@3x.jpg View File


+ 0
- 25
Trolley App/Base.lproj/LaunchScreen.storyboard View File

@@ -1,25 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
-    <dependencies>
4
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
-    </dependencies>
8
-    <scenes>
9
-        <!--View Controller-->
10
-        <scene sceneID="EHf-IW-A2E">
11
-            <objects>
12
-                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
13
-                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
14
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16
-                        <color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
17
-                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18
-                    </view>
19
-                </viewController>
20
-                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
21
-            </objects>
22
-            <point key="canvasLocation" x="53" y="375"/>
23
-        </scene>
24
-    </scenes>
25
-</document>

+ 0
- 66
Trolley App/Base.lproj/Main.storyboard View File

@@ -1,66 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15400" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3
-    <device id="retina6_1" orientation="portrait" appearance="light"/>
4
-    <dependencies>
5
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15404"/>
6
-        <capability name="Safe area layout guides" minToolsVersion="9.0"/>
7
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
-    </dependencies>
9
-    <scenes>
10
-        <!--View Controller-->
11
-        <scene sceneID="tne-QT-ifu">
12
-            <objects>
13
-                <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Trolley_App" customModuleProvider="target" sceneMemberID="viewController">
14
-                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
15
-                        <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
16
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
17
-                        <subviews>
18
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Trolley IUPI" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5sx-mb-Vhu">
19
-                                <rect key="frame" x="108" y="90" width="201" height="47"/>
20
-                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
21
-                                <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="40"/>
22
-                                <nil key="textColor"/>
23
-                                <nil key="highlightedColor"/>
24
-                            </label>
25
-                            <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="map" translatesAutoresizingMaskIntoConstraints="NO" id="KQC-gY-9mQ">
26
-                                <rect key="frame" x="7" y="248" width="400" height="400"/>
27
-                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
28
-                            </imageView>
29
-                            <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OCY-3M-KE5">
30
-                                <rect key="frame" x="71" y="706" width="111" height="47"/>
31
-                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
32
-                                <color key="backgroundColor" systemColor="systemPinkColor" red="1" green="0.1764705882" blue="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
33
-                                <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="30"/>
34
-                                <state key="normal" title="Paradas">
35
-                                    <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
36
-                                </state>
37
-                                <connections>
38
-                                    <action selector="paradasButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="esp-QM-yT5"/>
39
-                                </connections>
40
-                            </button>
41
-                            <button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2cl-Ch-09v">
42
-                                <rect key="frame" x="246" y="706" width="113" height="47"/>
43
-                                <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
44
-                                <color key="backgroundColor" systemColor="systemPinkColor" red="1" green="0.1764705882" blue="0.33333333329999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
45
-                                <fontDescription key="fontDescription" name="HelveticaNeue" family="Helvetica Neue" pointSize="30"/>
46
-                                <state key="normal" title="Tracking">
47
-                                    <color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
48
-                                </state>
49
-                                <connections>
50
-                                    <action selector="trackingButton:" destination="BYZ-38-t0r" eventType="touchUpInside" id="bj2-2c-F73"/>
51
-                                </connections>
52
-                            </button>
53
-                        </subviews>
54
-                        <color key="backgroundColor" systemColor="secondarySystemGroupedBackgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
55
-                        <viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
56
-                    </view>
57
-                </viewController>
58
-                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
59
-            </objects>
60
-            <point key="canvasLocation" x="137.68115942028987" y="133.92857142857142"/>
61
-        </scene>
62
-    </scenes>
63
-    <resources>
64
-        <image name="map" width="520.5" height="431"/>
65
-    </resources>
66
-</document>

+ 0
- 66
Trolley App/Info.plist View File

@@ -1,66 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
-<plist version="1.0">
4
-<dict>
5
-	<key>CFBundleDevelopmentRegion</key>
6
-	<string>$(DEVELOPMENT_LANGUAGE)</string>
7
-	<key>CFBundleExecutable</key>
8
-	<string>$(EXECUTABLE_NAME)</string>
9
-	<key>CFBundleIdentifier</key>
10
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
-	<key>CFBundleInfoDictionaryVersion</key>
12
-	<string>6.0</string>
13
-	<key>CFBundleName</key>
14
-	<string>$(PRODUCT_NAME)</string>
15
-	<key>CFBundlePackageType</key>
16
-	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
17
-	<key>CFBundleShortVersionString</key>
18
-	<string>1.0</string>
19
-	<key>CFBundleVersion</key>
20
-	<string>1</string>
21
-	<key>LSRequiresIPhoneOS</key>
22
-	<true/>
23
-	<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
24
-	<string>Se utilizara para su experiencia en la applicacion</string>
25
-	<key>NSLocationWhenInUseUsageDescription</key>
26
-	<string>Se utilizara para su experiencia en la applicacion</string>
27
-	<key>UIApplicationSceneManifest</key>
28
-	<dict>
29
-		<key>UIApplicationSupportsMultipleScenes</key>
30
-		<false/>
31
-		<key>UISceneConfigurations</key>
32
-		<dict>
33
-			<key>UIWindowSceneSessionRoleApplication</key>
34
-			<array>
35
-				<dict>
36
-					<key>UISceneConfigurationName</key>
37
-					<string>Default Configuration</string>
38
-					<key>UISceneDelegateClassName</key>
39
-					<string>$(PRODUCT_MODULE_NAME).SceneDelegate</string>
40
-					<key>UISceneStoryboardFile</key>
41
-					<string>Main</string>
42
-				</dict>
43
-			</array>
44
-		</dict>
45
-	</dict>
46
-	<key>UILaunchStoryboardName</key>
47
-	<string>LaunchScreen</string>
48
-	<key>UIMainStoryboardFile</key>
49
-	<string>Main</string>
50
-	<key>UIRequiredDeviceCapabilities</key>
51
-	<array>
52
-		<string>armv7</string>
53
-	</array>
54
-	<key>UISupportedInterfaceOrientations</key>
55
-	<array>
56
-		<string>UIInterfaceOrientationPortrait</string>
57
-	</array>
58
-	<key>UISupportedInterfaceOrientations~ipad</key>
59
-	<array>
60
-		<string>UIInterfaceOrientationPortrait</string>
61
-		<string>UIInterfaceOrientationPortraitUpsideDown</string>
62
-		<string>UIInterfaceOrientationLandscapeLeft</string>
63
-		<string>UIInterfaceOrientationLandscapeRight</string>
64
-	</array>
65
-</dict>
66
-</plist>

+ 0
- 53
Trolley App/SceneDelegate.swift View File

@@ -1,53 +0,0 @@
1
-//
2
-//  SceneDelegate.swift
3
-//  Trolley App
4
-//
5
-//  Created by Kendrick Morales on 10/21/19.
6
-//  Copyright © 2019 Kendrick Morales. All rights reserved.
7
-//
8
-
9
-import UIKit
10
-
11
-class SceneDelegate: UIResponder, UIWindowSceneDelegate {
12
-
13
-    var window: UIWindow?
14
-
15
-
16
-    func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
17
-        // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
18
-        // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
19
-        // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
20
-        guard let _ = (scene as? UIWindowScene) else { return }
21
-    }
22
-
23
-    func sceneDidDisconnect(_ scene: UIScene) {
24
-        // Called as the scene is being released by the system.
25
-        // This occurs shortly after the scene enters the background, or when its session is discarded.
26
-        // Release any resources associated with this scene that can be re-created the next time the scene connects.
27
-        // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
28
-    }
29
-
30
-    func sceneDidBecomeActive(_ scene: UIScene) {
31
-        // Called when the scene has moved from an inactive state to an active state.
32
-        // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
33
-    }
34
-
35
-    func sceneWillResignActive(_ scene: UIScene) {
36
-        // Called when the scene will move from an active state to an inactive state.
37
-        // This may occur due to temporary interruptions (ex. an incoming phone call).
38
-    }
39
-
40
-    func sceneWillEnterForeground(_ scene: UIScene) {
41
-        // Called as the scene transitions from the background to the foreground.
42
-        // Use this method to undo the changes made on entering the background.
43
-    }
44
-
45
-    func sceneDidEnterBackground(_ scene: UIScene) {
46
-        // Called as the scene transitions from the foreground to the background.
47
-        // Use this method to save data, release shared resources, and store enough scene-specific state information
48
-        // to restore the scene back to its current state.
49
-    }
50
-
51
-
52
-}
53
-

+ 0
- 60
Trolley App/ViewController.swift View File

@@ -1,60 +0,0 @@
1
-//
2
-//  ViewController.swift
3
-//  Trolley App
4
-//
5
-//  Created by Kendrick Morales on 10/21/19.
6
-//  Copyright © 2019 Kendrick Morales. All rights reserved.
7
-//
8
-
9
-import UIKit
10
-import CoreLocation
11
-import MapKit
12
-class ViewController: UIViewController,  CLLocationManagerDelegate {
13
-
14
-    var estado = false
15
-    let locationManager = CLLocationManager()
16
-    
17
-   
18
-    
19
-    
20
-    override func viewDidLoad() {
21
-        super.viewDidLoad()
22
-        locationManager.requestAlwaysAuthorization()
23
-        if CLLocationManager.locationServicesEnabled() {
24
-            locationManager.delegate = self
25
-            locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters
26
-        }
27
-
28
-        // Do any additional setup after loading the view.
29
-    }
30
-    
31
-    //funcion para poder extraer latitud y longitud
32
-    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
33
-        guard let locValue: CLLocationCoordinate2D = manager.location?.coordinate
34
-            else { return }
35
-        print("locations = \(locValue.latitude) \(locValue.longitude)")
36
-    }
37
- 
38
-    
39
-    //botton de las paradas
40
-    @IBAction func trackingButton(_ sender: UIButton) {
41
-        
42
-        // si el estado esta en falso
43
-        if estado != true{
44
-         sender.setTitle("Stop", for: .normal) // cambia el texto del boton
45
-         estado = true // cambiamos el estado a activado
46
-         locationManager.startUpdatingLocation() // activamos el metodo de capturacion de localizacion
47
-        }
48
-        else{ // si el estado esta en cierto
49
-             sender.setTitle("Tracking", for: .normal) // cambiamos el texto del boton
50
-            locationManager.stopUpdatingLocation() // paramos el metodo de capturacion de localizacion
51
-            
52
-            estado = false // se cambia estado de nuevo a falso
53
-        }
54
-    }
55
-    
56
-   
57
-    
58
-    
59
-}
60
-

+ 142
- 0
sender.php View File

@@ -0,0 +1,142 @@
1
+<?php
2
+header('Content-Type: application/json');
3
+function distanceMeters($lat1, $lon1, $lat2, $lon2)
4
+{
5
+	$x = deg2rad( $lon1 - $lon2 ) * cos( deg2rad( $lat1 ) );
6
+	$y = deg2rad( $lat1 - $lat2 );
7
+	$dist = 6371000.0 * sqrt( $x*$x + $y*$y );
8
+
9
+  return $dist;
10
+}
11
+	$db = file('db.txt');
12
+	$db2 = file('db2.txt');
13
+
14
+	$sum_of_lat = 0;
15
+	$sum_of_long = 0;
16
+	$sum_of_time = 0;
17
+
18
+	$sum_of_lat2 = 0;
19
+        $sum_of_long2 = 0;
20
+        $sum_of_time2 = 0;
21
+
22
+	$array_time = array();
23
+	$array_time2 = array();
24
+
25
+	$average = new stdClass;
26
+	$average->latitude = 0;
27
+	$average->longitude = 0;
28
+	$average->inTime = 0;
29
+	$average->parada = '';
30
+
31
+	$average2 = new stdClass;
32
+        $average2->latitude = 0;
33
+        $average2->longitude = 0;
34
+        $average2->inTime = 0;
35
+        $average2->parada = '';
36
+
37
+	$db_size = count($db);
38
+	$db2_size = count($db2);
39
+	$distances=[];
40
+	$distances2 = [];
41
+
42
+	$paradas = array(
43
+	        "Generales" => array(18.404916, -66.044828),
44
+	        "Natu1" => array(18.403663, -66.045529),
45
+	        "Natu2" => array(18.403769, -66.046572),
46
+	        "Centro" => array( 18.403898, -66.048255),
47
+	        "Biblio" => array(18.403994, -66.049781),
48
+	        "Merenderos"  => array(18.406345, -66.050197),
49
+	        "leyes" => array (18.406069, -66.047733),
50
+	        "Complejo" => array(18.406503, -66.046121),
51
+	        "rotc_EntrR" => array(18.406083, -66.043605),
52
+	        "rotc_Est" => array( 18.407121, -66.042053),
53
+		"Museo" => array(18.403917, -66.050996),
54
+		"FacundaB" => array(18.401992, -66.050611),
55
+		"Educacion" => array(18.402077, -66.047800),
56
+		"MultiP" => array(18.402133, -66.045014)
57
+	                );
58
+
59
+	for ($i = 0; $i < $db_size; $i++)
60
+	{
61
+		$decoded_location = json_decode($db[$i]);
62
+		$sum_of_lat += $decoded_location->latitude;
63
+		$sum_of_long += $decoded_location->longitude;
64
+		array_push($array_time,$decoded_location->inTime);
65
+		if($i+1 == $db_size)
66
+		{
67
+			$average->latitude = $sum_of_lat/$db_size;
68
+			$average->longitude = $sum_of_long/$db_size;
69
+			$average->inTime = date("h:i:s a",(array_sum(array_map('strtotime',$array_time)))/$db_size);
70
+		}
71
+	}
72
+
73
+	for ($i = 0; $i < $db2_size; $i++)
74
+        {
75
+                $decoded_location2 = json_decode($db2[$i]);
76
+                $sum_of_lat2 += $decoded_location2->latitude;
77
+                $sum_of_long2 += $decoded_location2->longitude;
78
+                array_push($array_time2,$decoded_location2->inTime);
79
+                if($i+1 == $db2_size)
80
+                {
81
+                        $average2->latitude = $sum_of_lat2/$db2_size;
82
+                        $average2->longitude = $sum_of_long2/$db2_size;
83
+                        $average2->inTime = date("h:i:s a",(array_sum(array_map('strtotime',$array_time2)))/$db2_size);
84
+                }
85
+        }
86
+
87
+	foreach($paradas as &$coso)
88
+	{
89
+		$plo2 = distanceMeters($average2->latitude, $average2->longitude, $coso[0], $coso[1]);
90
+		array_push($distances2,$plo2);
91
+		//echo $distances;
92
+
93
+	}
94
+
95
+
96
+	 foreach($paradas as &$thing)
97
+        {
98
+                $plo = distanceMeters($average->latitude, $average->longitude, $thing[0], $thing[1]);
99
+                array_push($distances,$plo);
100
+                //echo $distances;
101
+
102
+        }
103
+
104
+
105
+	$indice = array_search(min($distances),$distances);
106
+	$indice2 = array_search(min($distances2),$distances2);
107
+
108
+	$checking = array_keys($paradas);
109
+
110
+
111
+	$average->parada = $checking[$indice];
112
+	$average2->parada = $checking[$indice2];
113
+
114
+	$encoded_average = json_encode($average);
115
+	$encoded_average2 = json_encode($average2);
116
+//	echo $encoded_average;
117
+
118
+	$encoded_average =  json_decode($encoded_average);
119
+        $encoded_average2 =  json_decode($encoded_average2);
120
+
121
+	if (!empty($encoded_avarage2)){
122
+	$jsoncito  = lcfirst($encoded_average->parada) . "_" . ucfirst($encoded_average->parada);
123
+	}
124
+	elseif(!empty($encoded_average)){
125
+	$jsoncito  = lcfirst($encoded_average2->parada) . "_" . ucfirst($encoded_average2->parada);
126
+	}
127
+	else{
128
+	$jsoncito  = lcfirst($encoded_average->parada) . "_" . ucfirst($encoded_average2->parada);
129
+	}
130
+
131
+	$paquete -> parada = $jsoncito;
132
+	date_default_timezone_set('America/Puerto_Rico');
133
+
134
+	$currenttime =   date('h:i:s');
135
+
136
+	$paquete -> tiempo = $currenttime;
137
+
138
+	$encoded_paquete = json_encode($paquete);
139
+
140
+	echo $encoded_paquete;
141
+
142
+?>