Solved

Linking data to a graphical model that's updated in real time?

Posted on 2011-03-07
5
376 Views
Last Modified: 2013-12-25
hi guys

I've had an idea, but have no idea what it's called or where to look into implementing it.

Let's say that you have a customer register online on your website, how would one go about linking that data to a live country map on your website so that everytime those registrations go through, they end up showing up on a specific area of your map?

I'm obviously being very vague here regarding the platform being used, but in case you know what I'm referring to, would be great to get some insight or tips?

Thanks
Yashy
0
Comment
Question by:Yashy
  • 3
  • 2
5 Comments
 
LVL 109

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 35062431
Have a look at this page and tell me if it makes sense for what you want.  If not, please explain a little more.
http://landonbaseball.com/site_visitors.php

I have an article here about location-aware data.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/PHP_Databases/A_3437-IP-Address-to-Country-in-PHP.html

This organization might be helpful, too.
http://geoio.com/
0
 
LVL 1

Author Comment

by:Yashy
ID: 35062517
This is basically what I'm looking for yes. That's great stuff. man thank you

All I will have to do is figure out how data in SQL (such as the amount the registering person spent on a transaction) and their location will link into something like this:). I'm sure I'll figure it out....somehow:).
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 35064924
If you're choosing one path or another, I think the GEOIO web service may be a better choice than doing your own lookup with the Maxmind data.  Geoio did not exist when I wrote the article.  Here are the tradeoffs.

With your own MaxMind data you control the lookup.  With Geoio, you have to call an external service.  There is a risk, however slight, that the remote service could fail, and you will need to program around that eventuality. In my own scripts I do not need contemporaneous results from Geoio, so I start a separate process with a POST request, and this process calls Geoio.  If the process completes successfully my data base gets updated.  If it fails, I have an error handler that runs asynchronously.  In any case, my web clients are not delayed by the remote service.

Using Geoio has the advantage that you do not have to reload a data base from Maxmind every month.  It's not life-changing but it is a PITA.  Geoio takes care of all that for you.

HTH, ~Ray
0
 
LVL 1

Author Closing Comment

by:Yashy
ID: 35066970
You have been very helpful ray. Thanks.
0
 
LVL 109

Expert Comment

by:Ray Paseur
ID: 35068696
Thanks for the points - it's a really great question! ~Ray
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

This article will show, step by step, how to integrate R code into a R Sweave document
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
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)

860 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