Discussion Forums  >  Maps, Device Location, Tracking

Replies: 4    Views: 127

nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
07/26/13 01:14 PM (10 years ago)

User contributed map pins

Is there a way to let users contribute pins to a map to remember locations that are important only to them?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/26/13 05:54 PM (10 years ago)
Sort of. It would take a bit of custom work, but could be done. from the 'mile high' view: 1) Script/code to send users current location to a server. 2) Server places coordinates in a database. 3) Later, user queries server, gets json encoded list of waypoints from database, it populates their map. You would need a way to identify the user. Login/Pass could work. So could deviceId, except if they changed devices... You would need some way to keep user 'saved locations' separate from other users. Probably by login/deviceId. most of the work would be on the server side. You might need a custom form on the device to get any other information you're trying to obtain. 'Eventually' I'll be doing something like this also, but don't wait for me. I've got so many balls in the air already, and am easily distracted by bright shiny objects as well. Cheers! -- Smug
 
nmcmap
Code is Art
Profile
Posts: 33
Reg: Apr 04, 2012
location unknow...
330
like
07/27/13 02:55 AM (10 years ago)
OK, so would this require self-hosting? Also, any advice or recommended resources on how to set up the Login/Pass for individual users?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
07/27/13 03:07 AM (10 years ago)
Well, you don't 'have' to be self hosted, but it would make it easier. You *will* have to have access to 'some' server somewhere. With PHP/MySQL preferably. This is why self hosted would be easier; they usually have that. But if you host a website somewhere, it will also have the same stuff, so it would work just fine. If you have access. Setup some kind of account creation. This could be done with a custom plugin within the BT Environment, or can be setup as a PHP/MySQL web page, using an HTML or CustomURL Plugin. Setup some kind of "data input" system to accept user coordinate entries. This could be done with a custom plugin with the BT Environment, or can be setup as a PHP/MySQL web page, using an HTML or CustomURL plugin. Setup some kind of "data retrieval" system to query and retrieve the user coordinate entries. This could be done easiest with a PHP/MySQL script, feeding prepared and formatted JSON data from a query to the MySQL server with the appropriate authentication for the user. It sounds pretty daunting, and I won't say it's simple, but it's not as difficult as it might seem. Just a lot of rube goldberg activities that feed off each other. Complete one task, complete the next task and so on... pretty soon you're done. Cheers! -- Smug
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
07/30/13 10:35 PM (10 years ago)
If they only need to remember map points within the app, why not store those points in the NSUserDefaults? Granted, the custom locations won't be shared to other devices that the User might be utilizing. You'd then have to customize the Maps plugin to grab the custom locations from NSUserDefaults. Also, you'd need to create a Plugin (screen) to let the User add-delete-edit the custom locations. Perhaps Kittsy or Chris1 might be available to whip up a custom plugin for you! Alternatively, If you want it done on the Server side, then use MATE to simplify your coding. MySQL AJAX Table Editor. It is the modern version of phpMyEdit to easily provide Create-Read-Update-Delete-Search operations to the User. -- Niraj
 

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.