Solved

Unique Accessable Mashlet / Web Resource

Posted on 2008-10-22
5
203 Views
Last Modified: 2012-05-05
Hi,

http://www.gmap-pedometer.com/
Based on Google Maps, one can track his walking distance using the above tool. After route has been saved, an unique access number is created that points to the route saved. So, when someone returns to the URL, the saved route is displayed: EG:
http://www.gmap-pedometer.com/?r=2353039

I would like to know how something like above is possible - does it save the route information (data) in database or xml, create an identifier that points to this database entry or xml file? Any other ideas? Are there any libraries / tools that does this? What kind of languages & software are used?

Our team is trying to create something similar so our users could just access specific data using unqiue urls?

Thanks,
Karthik
0
Comment
Question by:Purdue_Pete
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 22785990
0
 

Author Comment

by:Purdue_Pete
ID: 22786823
Hi,
I need an design & development ideas to accomplish tasks that gmap-pedometer has done - NOT looking for how to integrate Google Maps into my products. EG: How are they saving their data, are they storing it in database, what type of data are they storing - just metadata or data. are they re-running the services based on metadata or re-storing & displaying the saved data....any ideas on developing a web resource where an user can save their results and an unique accessible number to get back to the results.
Thanks.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 22787193
You asked what they used

I answered. They use the Google Maps API

Have a look here

Paste this into your browser location

view-source:http://www.gmap-pedometer.com/gmapPedometer.js
0
 
LVL 75

Assisted Solution

by:Michel Plungjan
Michel Plungjan earned 100 total points
ID: 22787222
//redraw polyline
            var polyline = getQuerystringParameter('polyline', paramString); // get the line from the url
   
            if (polyline.length > 0) {
            
                  arrPoints = decodePolyline(polyline);

function decodePolyline(a) {

  

    if (rId.length == 0) {

    

      var b=a.length;

      var c=0;

      var d=new Array();

      var e=0;

      var f=0;

      while(c < b){

        var g;

        var h=0;

        var i=0;

        do{

          g=a.charCodeAt(c++)-63;

          i = i | (g&31)<<h;

          h = h + 5

        }while(g>=32);

        var l;

        if (i & 1){       

          l = ~(i >> 1);   

        } else {        

          l = i >> 1;   

        }

        

        e = e + l;

        d.push(e);

        

        h=0;

        i=0;

        do{

          g=a.charCodeAt(c++)-63;

          i = i | (g&31)<<h;

          h = h + 5;

        }while(g>=32);

        

        var m

        if (i & 1)

          m = ~(i >> 1);

        else

          m = i >> 1

          

        f = f + m;

        d.push(f)

      }

      return d;

    

    } else {

    

      var retArr = a.split('a');
 

      return retArr;

    

    }

  }

Open in new window

0
 

Accepted Solution

by:
Purdue_Pete earned 0 total points
ID: 22863438
Hi mplungjan,
Sorry if my questions were not clear - got the answer from the author:
"The data gets saved in a MySql database. The site runs on Unix, and my hosting provider offers MySql as a standard feature. The routeID is an identity field in mysql, so it's pretty much MySql that's responsible for generating the ID itself."
- that helped me understand some of the internal workings.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now