English 中文(简体)
有多少地点,如根据它们所处理的城市划分的集团部分地段?
原标题:How do sites like Groupon segment geolocation based on the cities they have deals in?

Say You visit Groupon from the entry point Agoura Hills, CA - how can Groupon go about referencing that urban to the nearest City that has met (g Los Angeles) and Options that as the end?

选择最短时间,是否占用了排位/远离地点和计算与所有现有城市的距离? 如果是的话,你们能从哪里获得像每个城市那样的相对/长期数据,或为此目的开立的皮?

问题回答

Groupon seems to use limelightnetworks as their CDN provider and most CDNs due to their distributed nature having some kind of geo-location database which they can map the request which is coming from the region. At the CDN s hands those information is easy, and site can be work with that information further. All that would be required is someway for the DNS to inform the server and this is not a new concept.

There is a also a geolocation API spec, which would allow browsers/clients to send information about the users location to the server (which the server can use for customization). Those act number of factors such as DNS, your wireless AP, etc. But that is still in draft stage and some google services use it and it requires browser support too.





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签