[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

flash geolocator

in as2, how can I create a program the finds the users area
and converts it to a city name.

for example:  find 'deals' in 'your city'
1 Solution
You'll need some server side help for this.  It's done by taking the user's IP address, and looking it up in a table to find the registered town.

It's not particularly accurate, as it's down to where the user's internet provider registers them from, so if somebody is VPN'ing into their office then it'll be completely wrong.

Sadly, I think you'll have to pay for the service as well - either to get the lookup table, or (more likely) to query an API, which will be the simplest option for you.

There are loads of options out there for providers: http://www.google.co.uk/search?hl=en&safe=off&q=city+from+ip&btnG=Search&meta=

Good luck!

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now