English 中文(简体)
Building a service for my website that has some foursquare features
原标题:

I am interested in extending my website to provide a service which involves users "check in" in my university s campus. Since Location Based Services (LBS) is pretty new, and there are not much literature around that could provide relevant interests to this matter, I have the following questions to ask:

First, I know that I have to design an Android App and possibly an phone app application. For all I am guessing, foursquare is simply using the client to send data to their webserver back and forth.

  1. What are the standard protocols for the client to communicate with the webserver? (or is it simply just json or xml?)
  2. What kind of special web service do they use on their backend? (Like some research would reveal they are using LIFT, written in Scala which is something that I am not familiar with.).
  3. I know python pretty well. Are there webservers, i.e. django or pylons, that provide similar service to 2) above?
  4. How difficult is this really?

Also, any literature on this subject matter is greatly appreciated.

问题回答

Use the foursquare API.

They have pre-made libraries for both Django and Python here, those should make it easier to integrate foursquare into your website.

Well, I do think a good first step would be to look at Foursquare s API, both to see if you can simply integrate with their service (i.e. look for check-ins that are to campus buildings or whatever) or just to get a picture of what they re using. Their API seems like a pretty standard web service using XML or JSON, which seems like a good practice for you as well.

There are some challenges in building a scalable web service that will handle geographic data: you d want a database that can handle geospatial indexing for you (otherwise the algorithms can get a little complex). If you re familiar with Django, GeoDjango might be a good fit for you. I hear that Foursquare is actually switching to use MongoDB, which has some geospatial indexing features: they re likely using a NoSQL database because of their unique scaling issues which you probably don t need to worry about.

Mimicking foursquare isn t a good approach. A solution to your specific functionality needs and load levels will always be custom, not copied. Even the biggest university campus in the world, with every single person using the service, you d be totally dwarfed by foursquare s user base. So whatever they re doing is WAY higher-end than what you need.

For your purposes, a simple web service is probably more than adequate. I m building apps that are location-sensitive (arts/cultural events and consumer offers local to the user s current position) right now that hit PHP scripts with query string or posted-data arguments, and consume JSON. Nothing fancy, but I can handle the load on the server side with lightweight technologies I already know, and I know it ll scale to meet my actual load.

Don t be beholden to the way somebody else does it, even if they are the industry leader. Their needs aren t your needs.





相关问题
Code sign Error

I have created a new iPhone application.I have two mach machines. I have created the certificate for running application in iPhone in one mac. Can I use the other mac for running the application in ...

ABPersonViewController Usage for displaying contact

Created a View based Project and added a contact to the AddressBook using ABAddressBookRef,ABRecordRef now i wanted to display the added contact ABPersonViewController is the method but how to use in ...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

• 如何将搜查线重新定位?

我正试图把图像放在搜索条左边。 但是,问题始于这里,搜索条线不能重新布署。

热门标签