Skip to main content

Bias By IP

Biases search based on approximate geolocation of an IP address. Set bias_ip to true within queryOptions to enable.

In this code, an IP bias is set to prioritize addresses based on the user's IP location.
 
AddressFinder.setup({
apiKey: "ak_test",
queryOptions: {
// Set IP bias to prioritize addresses based on user's IP location
bias_ip: "true"
},
line_1: "#line_1",
line_2: "#line_2",
line_3: "#line_3",
post_town: "#post_town",
postcode: "#postcode"
}
});

Live Demo

Loading...