Display Phone Number or link based on Geolocation? - hyperlink

Does anyone know how to have a phone number & link to appear based on the visitors Geolocation or IP address? For instance, lets say I have 5 locations across 2 different states. I want to have the phone number in the header to show the phone number of the location that is closest to the person who is visiting the website.

You can pull some info from geolocation of the IP address. E.g. http://whois.arin.net/ui/
You can also ask the user's browser for their location: https://developers.google.com/web/fundamentals/native-hardware/user-location/
You would need to extend the above method using browser detection to include other browsers than just Chrome.

Related

What is the best way to implicitly extract someone's location from a text message sent from his/her phone to an app?

I am working on an app that needs to figure out someone's location in order to say buy a coffee from the Starbucks closest to them.
The app currently uses the Twilio API to receive a text from someone's phone and act on it. The app can get the number and possibly the zip code if available from the text message; however, is there a more reliable way to get someone's location to accurately determine the closest Starbucks to them?
No, and the zip code is not reliable. It is an approximation based on area code.
Possible look at WhatsApp but not heavily used in some countries.
Can I share my location or receive location information on WhatsApp?

Do Google Maps use only my IP for geolocation?

According to this, there is no easy way to tell the exact location of an IP address. So, when I visit Google Maps on my laptop from my home wifi, how does Google show me the exact location of my house ? What additional information does Google use to track me down ?
Instead of IP address geolocation, your browser might have WIFI geolocation enabled. It will pass the router MAC address to Google to find your house location. Google has a lot of Android device with GPS enabled to verify the location.

Retrieving phone geolocation when user tap NFC chip?

I am developing a software to remotely manage NFC tags - change their actions and track campaign performance such as:
No. of taps on individual NFC chips
date and time of taps on individual NFC chips
location of NFC chips when tapped
When the user tap the NFC, they are directed to our server which then redirect the phone's browser to the designated destination set in the campaign.
I have completed all of the above except for the location one as it gives me the inaccurate location.
At the moment, I'm using the site http://ipinfodb.com + their API to get the phone ip address and supposedly location, but it's innacurate.
Another, more accurate approach would be to "get" the phone's location via the GPS but not sure how to approach this.
Any suggestions would be much appreciated.
Probably an easier solution would be to get the data out of an analytics backend such as Google Analytics (relying on their accuracy ...)
Otherwise you need to ask the user's permission - but that needs to be done on the web site acting as the redirection target, as otherwise you would break the flow.

Address validation form API or Database on iOS?

I'm working on an iOS app where users can purchase products and get them delivered home. Before the actual purchase, the user will have to input his delivery address in the United Kingdom.
For example, the user types in the postcode "SW1A 2AB", and a UIPicker shows up listing the possible matches such as "11 Downing St".
I would like to know if there any ressources or services online (free ideally) to do an address lookup based on a UK postcode that the user will provide on the form. Since the app will be launched in the UK only and products can only be delivered here, I don't have to worry about other kinds of address formats.
It sounds like you are after Postcode to Address lookup which within the UK involves using the Royal Mail Postcode Address File (PAF) which comes with a cost, however is the most reliable source for UK address data. It can be bought as a data file directly from Royal Mail however several APIs also exist, meaning you don't need to worry about storing and updating over 29 million addresses.
I work for Allies Computing who provide a cloud hosted REST based API, which uses Royal Mail's daily updates and can be paid for on a per search basis.
Of course other providers exist offering very similar APIs, Royal Mail's Powered by PAF website has a full list of them.
So long as your application will have access to the internet you can make use of these, although it would be a good idea to present users with a full address form if they don't have internet connection.

Geolocation and IP address targeting for ads

I'm trying to create a Ad campaign with either or both Google Adwords and Google Analytics. The key point for the campaign is to target a specific geographic location and a specific range of class 4 IP addresses and no one else.
I would like the ability to rotate between ads once a specific IP address has already seen an ad in the Ad group.
I've seen something like this done by a company called We-Care-Software and when you click on the image in the email they send it takes you to a landing page for a Time Warner Cable or Verizon Wireless promotion.
I'd like to do something similar to that but targeting IP address ranges. I want to know if this is possible with Google Adsense, DoubleClick for Publishers or Adwords even because with the research I've been doing I haven't come across anything so specific with their services, only geographic targeting, but I need to go deeper than that. Maybe there is an alternative web app that does this?
Any help appreciated.
Thanks in advance.
You wont be able to do this directly with any Google products as far as I am aware. This is due to privacy as IP address targeting (even ranges) could be considered as personally identifiable information. There is IP exclusion, but you can only exclude up to 500 entries, and although wildcards are supported, they are only for the last byte of the address.
If you have a website (e.g. are you a publisher?) that the users are likely to see, you can do the bucketing on your own server (e.g. "BucketA" for users in range 255.255.x.x, "BucketB" for users in range 255.254.x.x etc etc), and the dynamically fire off an adwords remarketing tag with the appropriate bucket ID. You can then target the ad groups to the different buckets in AdWords without Google having to target the IP ranges (as it is targeting the buckets you told it about instead). This approach obviously wont work with users who have not been to your site yet though.

Resources