Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/13/2019 in all areas

  1. Are you not using PHP? If you needed to add or remove fields after the page loaded, that's one thing, but if you know ahead of time then you should do all the work in PHP and deliver the completed result to the browser without it having to perform additional work.
    1 point
  2. If ($lat, $lng) is the centre of the postcode area, then this will find the locations of properties within $d Km select lat, lng from properties where pow(lat-$lat, 2) + pow((lng-$lng)*cos(radians($lat)), 2) < pow($d/110.25, 2)
    1 point
  3. They have a big database of locations. Probably purchased from and/or subscribed to a service that tracks stuff like that so they don't have to try to stay up to date themselves. They know the latitude and longitude of an address, also probably from a third-party service (eg, Google Maps). A postcode has a location too, though it's obviously not quite as precise. Then they can do some pretty simple math to estimate the distance between the two points.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.