From 44df72dd48ef3dc4602598c727e3a6c2d778916d Mon Sep 17 00:00:00 2001
From: Paul Makles <paulmakles@gmail.com>
Date: Thu, 29 Nov 2018 19:48:56 +0000
Subject: [PATCH] Stay within api limits

---
 App.js   | 3 ++-
 app.json | 7 +++++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/App.js b/App.js
index 61902fc..91f9e09 100644
--- a/App.js
+++ b/App.js
@@ -114,11 +114,12 @@ const request = {
 					source.matches.forEach(res => {
 						search.push(res.id);
 					});
-					fetch('https://api.tfl.gov.uk/StopPoint/' + search.join(','))
+					fetch('https://api.tfl.gov.uk/StopPoint/' + search.splice(0, 20).join(','))
 						.then(response => response.json())
 						.then(source => {
 						let data = [];
 						let process = (x, name) => {
+							console.log(x.stopType);
 							if (['NaptanOnstreetBusCoachStopCluster', 'NaptanOnstreetBusCoachStopPair'].indexOf(x.stopType) > -1) {
 								x.children.forEach(y => process(y));
 							} else if (x.stopType == 'NaptanPublicBusCoachTram') {
diff --git a/app.json b/app.json
index 1d71e02..2a13c24 100644
--- a/app.json
+++ b/app.json
@@ -1,12 +1,12 @@
 {
   "expo": {
     "name": "bustimes",
-    "description": "This project is really great.",
+    "description": "Bus Times",
     "slug": "bustimes",
     "privacy": "public",
     "sdkVersion": "31.0.0",
     "platforms": ["ios", "android"],
-    "version": "1.0.0",
+    "version": "1.0.1",
     "orientation": "portrait",
     "icon": "./assets/icon.png",
     "splash": {
@@ -22,6 +22,9 @@
     ],
     "ios": {
       "supportsTablet": true
+    },
+    "android": {
+      "package": "uk.insrt.android.bustimes"
     }
   }
 }
-- 
GitLab