Discussion Forums  >  Config Data, JSON, App Refresh

Replies: 67    Views: 217

ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
05/28/12 05:14 PM (13 years ago)

JSON to Google Maps

Edit: I got it to point out a location from the JSON data, but the screen is still grey checkered, only shows a point on the map hey, so i was working on putting map points together using JSON and google maps shows up but its a checked grey screen, and i see it moving to a location, but no images show up... heres what i did: 1) Made the JSON, sent it to dropbox, made a google map, used the dropbox URL in the advanced properties, and the JSON is below, i went to jsonlint.org and its a valid json, so what did i do wrong? { "childItems": [ { "itemId": 11111111, "itemType": "BT_mapLocation", "latitude": "27.980216", "longitude": "-82.533224", "title": "Test", "subTitle": "Test1" } ] }
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
05/28/12 06:27 PM (13 years ago)
Does the simulator or device have internet access (to fetch the actual map from google?).
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 06:28 PM (13 years ago)
i think it does, but how do i check just in case
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
05/28/12 06:30 PM (13 years ago)
try going to a normal website url within the same device or sim
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 06:34 PM (13 years ago)
yes i have internet connection stobe, its just not fetching the actual map
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 06:44 PM (13 years ago)
im looking at GoNorthWest's guide, and if it dont work or works im going to reply back, because i think i might see the problem now
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 07:02 PM (13 years ago)
ok nothing worked, now what lol
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
05/28/12 07:03 PM (13 years ago)
is it android or iOS? If its Android, might have to wait for Fred to show up, lol.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 07:04 PM (13 years ago)
its android...
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 07:15 PM (13 years ago)
ok its seemed i didnt have a google api key, which i just got now, where do i put it again
 
Outbreak
buzztouch Evangelist
Profile
Posts: 452
Reg: May 30, 2011
Colorado
14,620
like
05/28/12 08:20 PM (13 years ago)
Each version uses it slightly differently. Whatever version use MySkylla's Blog http://myskylla.wordpress.com/2012/03/13/buzztouch-google-maps/ It will walk you through the steps. He did a great job explaining it. Helped me.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/28/12 10:53 PM (13 years ago)
Did you use the public Dropbox folder? If so, did you use a public link? If not, did you use a share link? Using any other link won't work. See my Dropbox & Buzztouch article for details. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 10:59 PM (13 years ago)
i used the public dropbox folder link
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/28/12 11:04 PM (13 years ago)
You didn't answer the question. A public Dropbox folder link is not necessarily a public link. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 11:07 PM (13 years ago)
i used the correct link, i made sure of it, because if i didnt, the google map and marker would of never showed up
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/28/12 11:12 PM (13 years ago)
OK, so you're pass the Dropbox issue, now you're onto the getting a nap to display issue. Follow my map guide, get rid of debug key. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 11:13 PM (13 years ago)
okay, im going to go slow this time because i screwed up last time
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 11:40 PM (13 years ago)
i cant find this for my life, i checked the whole bt_activity_base.java : //showLocationMap public void showLocationMap(){ /* Intent theIntent = new Intent(this, Screen_LocationMap.class); startActivity(theIntent); */
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/28/12 11:47 PM (13 years ago)
Did you notice for BTv1.4 only? Yeah it a bit confusing as written but using document.write I'm going to clear that up a bit. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/28/12 11:53 PM (13 years ago)
ohhh wow for bt 1.4 only...no wonder! whew, let me read my next step now
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 12:13 AM (13 years ago)
eh i tried everything, besides getting the debug key because the command wont give it to me
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 12:29 AM (13 years ago)
Are you using the Eclipse keytool?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 12:35 AM (13 years ago)
its there, i put my md5 fingerprint into the releasekey part, but cant get the debug key, it shows md5 and sha1 fingerprint
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 12:37 AM (13 years ago)
im sorry, i didnt put the md5 fingerprint into the releasekey, i put the other thing there, the api key i got from google
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 01:42 PM (13 years ago)
i cant figure this out for the life of me, what am i missing i did every step to everything
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 01:45 PM (13 years ago)
Did you get the debug key?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 01:47 PM (13 years ago)
no, i cant find any debug key, how do i find it, google just gave me a release key
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 01:49 PM (13 years ago)
ok i found where the debug.keystore is C:\Users\Cono\.android\debug.keystore what do i do with this
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 02:01 PM (13 years ago)
did i just ruin the debug.keystore by changing it by accident, now it shows as a wordpad that can be opened
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 02:06 PM (13 years ago)
Don't use it. Forget it exists. Stab it with a wooden stake, bury it in an unmarked grave, and shoot everyone in the burial detail. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 02:07 PM (13 years ago)
lol, so how else am i going to use the maps, its going to be an important role in my app
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 02:10 PM (13 years ago)
The Google Maps API Release key. (Release vs. Debug)
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 02:11 PM (13 years ago)
so should i just take out the debug string?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 02:22 PM (13 years ago)
Return it to it's original state or comment it out, don't remember preferred method, but I think the first.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 02:28 PM (13 years ago)
i dont have a debug.keystore anymore, i deleted it and i cant get a new one..im a mess today, ok ill try
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 02:30 PM (13 years ago)
Eclipse creates the debug key. THAT'S NOT WHAT YOU WANT. You need to create a signing key. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 02:31 PM (13 years ago)
Have you exported the app to a device. If not do so. Follow The Android Process in my guide. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 02:48 PM (13 years ago)
i havent exported to a device, will look at ur guide
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 03:34 PM (13 years ago)
ok now what
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 04:15 PM (13 years ago)
Did you create a signing keystore? That's the release key. You'll use the eclipse keytool and the release key to obtain the Google maps API release key. Then your map will work. Fred
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 05:53 PM (13 years ago)
i have the google api release key, and it never worked when i posted it in the string
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 06:12 PM (13 years ago)
Put source code on Dropbox and share me a link.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 06:31 PM (13 years ago)
a zipped up file of my project?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
05/29/12 06:49 PM (13 years ago)
Easier if you put project in dropbox folder and share link
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
05/29/12 06:50 PM (13 years ago)
ok
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 07:44 AM (13 years ago)
d u ever get the map tiles up? I have a question for u ceerup. Did you manually enter the Json data into the file? I'm looking for a translator tool to return data from a table as json map data. Any ideas?
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/19/12 09:02 AM (13 years ago)
the tiles work when i sign my app away to the keystore yes. what do you mean by translator tool
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:16 AM (13 years ago)
PHP that pulls data from table and returns Json format. Right now I actually am returning the data but BT is not recognizing and displaying points.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/19/12 09:18 AM (13 years ago)
i have no idea how to do that, i only know how to use child items for map points
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:30 AM (13 years ago)
is this correct? {"childItems":[{"itemId":"1","itemType":"BT_MapLocation","latitude":"43.62736","longitude":"-71.86533","title":"Shipit Courier Service"},{"itemId":"2","itemType":"BT_MapLocation","latitude":"40.6728","longitude":"-4.2236","title":"Happy"},{"itemId":"3","itemType":"BT_MapLocation","latitude":"40.6732091","longitude":"-74.2243325","title":""},{"itemId":"4","itemType":"BT_MapLocation","latitude":"40.67330698","longitude":"-74.22443727","title":""},{"itemId":"5","itemType":"BT_MapLocation","latitude":"40.6732428","longitude":"-74.2243501","title":""}]}
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/19/12 09:31 AM (13 years ago)
yes its valid json, you can check yourself if you go to jsonlint.org
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:33 AM (13 years ago)
k. brb
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
06/19/12 09:35 AM (13 years ago)
I think the tool you were looking for might have been my CSVtoJSON tool? It takes location data from a table format and creates the JSON config file to feed your map screen. http://idevdepot.com/csv2json-map-maker-tool/
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:36 AM (13 years ago)
Valid JSON data. So why isnt my map updating? Grrrrr
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/19/12 09:37 AM (13 years ago)
is your screen data URL pointing to the JSON? its in the advanced settings
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:39 AM (13 years ago)
I went to screen menu -----> my map screen ------> dataURL then i pasted the url in there no update.
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
06/19/12 09:40 AM (13 years ago)
you can test this URL in your screen config data. Its a test URL for my tool https://dl.dropbox.com/u/49976360/Maps/MapData.txt
 
Stobe
buzztouch Evangelist
Profile
Posts: 1528
Reg: Mar 04, 2011
Fredericksburg,...
24,680
like
06/19/12 09:41 AM (13 years ago)
Also, in the app, are you forcing the whole app to refresh (by clicking the refresh button at the upper left side of the home screen)?
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:43 AM (13 years ago)
wait.... does it have to be a txt file? i'm using php to return some text
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:46 AM (13 years ago)
not working force closed my app restarted loaded new data no map data. only shows user location
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 09:47 AM (13 years ago)
f5
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/19/12 10:14 AM (13 years ago)
data url not working for my 2.0 app
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/25/12 05:56 PM (13 years ago)
ok I'm back... URL now working. Except the format Ceerup starts with in this post does not return details even though the result is valid JSON format. Where is that map plugin info again?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 06:02 PM (13 years ago)
Where is that map plugin info again? Perhaps you're referring to my Buzztouch & Google maps guide found on www.MySkylla.com Go to the documentation section. Fred
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/25/12 06:32 PM (13 years ago)
I'm talking about the correct order of the child items in order to have data display. Otherwise I have been only getting location with no title or subtitle.
 
ceerup
Code is Art
Profile
Posts: 1033
Reg: Oct 10, 2011
New York City
16,380
like
06/25/12 06:39 PM (13 years ago)
are you self hosted 2.0?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/25/12 06:46 PM (13 years ago)
Read buzztouch v1.5 documentation in the How-To Section. Fred
 
Sevens
Code is Art
Profile
Posts: 146
Reg: Jan 28, 2012
New York Metro ...
11,960
like
06/25/12 06:47 PM (13 years ago)
Not yet. Will check it out.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.