Where’s [User]? (POST)
Haley & Trey
Interesting Challenges:
- Figuring out how to have both a WordPress site and an additional generic PHP site on the same machine (ended up giving up and taking down the WordPress site during development)
- Registering the app so we could use Google Play services
- Parsing the JSON (originally was trying to misuse a JSON object, lists of objects work better as a JSON array…)
Insights:
- The maps seem really fun to work with, plan on writing more apps using it
- Getting Google services to work is a bit complicated, but well worth the pain; looks like there are some fun services to play with
Changes:
- Removed voice commands
- Added external DB, web services, and threading
- App stores a list of the locations you have visited
- App displays all locations you have visited on a map
Screen Shots:
New locations are sent to PHP page that inserts them into the database
get_data.php queries the database and displays all records as a JSON array
JSON Array format:
[
{
“latitude” : ##.####,
“longitude” : ##.####
},
{
“latitude” : ##.####,
“longitude” : ##.####
}…
]
Claiming:
1 – list view
3 – remote database
5 – web service
6 – threading
8 – maps
9 – GPS