Search by Algolia
What is online retail merchandising? An introduction
e-commerce

What is online retail merchandising? An introduction

Done any shopping on an ecommerce website lately? If so, you know a smooth online shopper experience is not optional ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

5 considerations for Black Friday 2023 readiness
e-commerce

5 considerations for Black Friday 2023 readiness

It’s hard to imagine having to think about Black Friday less than 4 months out from the previous one ...

Piyush Patel

Chief Strategic Business Development Officer

How to increase your sales and ROI with optimized ecommerce merchandising
e-commerce

How to increase your sales and ROI with optimized ecommerce merchandising

What happens if an online shopper arrives on your ecommerce site and: Your navigation provides no obvious or helpful direction ...

Catherine Dee

Search and Discovery writer

Mobile search UX best practices, part 3: Optimizing display of search results
ux

Mobile search UX best practices, part 3: Optimizing display of search results

In part 1 of this blog-post series, we looked at app interface design obstacles in the mobile search experience ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Mobile search UX best practices, part 2: Streamlining search functionality
ux

Mobile search UX best practices, part 2: Streamlining search functionality

In part 1 of this series on mobile UX design, we talked about how designing a successful search user experience ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Mobile search UX best practices, part 1: Understanding the challenges
ux

Mobile search UX best practices, part 1: Understanding the challenges

Welcome to our three-part series on creating winning search UX design for your mobile app! This post identifies developer ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Teaching English with Zapier and Algolia
engineering

Teaching English with Zapier and Algolia

National No Code Day falls on March 11th in the United States to encourage more people to build things online ...

Alita Leite da Silva

How AI search enables ecommerce companies to boost revenue and cut costs
ai

How AI search enables ecommerce companies to boost revenue and cut costs

Consulting powerhouse McKinsey is bullish on AI. Their forecasting estimates that AI could add around 16 percent to global GDP ...

Michelle Adams

Chief Revenue Officer at Algolia

What is digital product merchandising?
e-commerce

What is digital product merchandising?

How do you sell a product when your customers can’t assess it in person: pick it up, feel what ...

Catherine Dee

Search and Discovery writer

Scaling marketplace search with AI
ai

Scaling marketplace search with AI

It is clear that for online businesses and especially for Marketplaces, content discovery can be especially challenging due to the ...

Bharat Guruprakash

Chief Product Officer

The changing face of digital merchandising
e-commerce

The changing face of digital merchandising

This 2-part feature dives into the transformational journey made by digital merchandising to drive positive ecommerce experiences. Part 1 ...

Reshma Iyer

Director of Product Marketing, Ecommerce

What’s a convolutional neural network and how is it used for image recognition in search?
ai

What’s a convolutional neural network and how is it used for image recognition in search?

A social media user is shown snapshots of people he may know based on face-recognition technology and asked if ...

Catherine Dee

Search and Discovery writer

What’s organizational knowledge and how can you make it accessible to the right people?
product

What’s organizational knowledge and how can you make it accessible to the right people?

How’s your company’s organizational knowledge holding up? In other words, if an employee were to leave, would they ...

Catherine Dee

Search and Discovery writer

Adding trending recommendations to your existing e-commerce store
engineering

Adding trending recommendations to your existing e-commerce store

Recommendations can make or break an online shopping experience. In a world full of endless choices and infinite scrolling, recommendations ...

Ashley Huynh

Ecommerce trends for 2023: Personalization
e-commerce

Ecommerce trends for 2023: Personalization

Algolia sponsored the 2023 Ecommerce Site Search Trends report which was produced and written by Coleman Parkes Research. The report ...

Piyush Patel

Chief Strategic Business Development Officer

10 ways to know it’s fake AI search
ai

10 ways to know it’s fake AI search

You think your search engine really is powered by AI? Well maybe it is… or maybe not.  Here’s a ...

Michelle Adams

Chief Revenue Officer at Algolia

Cosine similarity: what is it and how does it enable effective (and profitable) recommendations?
ai

Cosine similarity: what is it and how does it enable effective (and profitable) recommendations?

You looked at this scarf twice; need matching mittens? How about an expensive down vest? You watched this goofy flick ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

What is cognitive search, and what could it mean for your business?
ai

What is cognitive search, and what could it mean for your business?

“I can’t find it.”  Sadly, this conclusion is often still part of the modern enterprise search experience. But ...

Vincent Caruana

Sr. SEO Web Digital Marketing Manager

Looking for something?

facebookfacebooklinkedinlinkedintwittertwittermailmail

Geo-search is playing an important role in user experience, especially on mobile applications. Therefore we’ve never stopped challenging it and we are excited today to announce a big improvement!

This new geo-search release simplifies most of the use cases, adds several features, and maintains backward-compatibility! And because we are hardcore when it comes to performance, we’ve made sure this update won’t impact anything. Better yet, all queries will actually be faster!

 

auto-radius

The end of the radius pain!

The most used geo-search feature was the retrieval of records around a specific geolocation. It is widely used by mobile applications via the device’s GPS position. On browsers, you can use our IP based geolocation feature. This feature requires a maximum distance called “radius” to perform the search, which was set by default to 10km. Because radius has an impact on performance, it is important to keep it low. In reality, it may become extremely cumbersome for our users to set it as the radius would depend on the area’s information density!

Fortunately, we have removed this pain in our new geo-search! While you can still manually define the radius, you can now let the system adjust it according to the density of the area for you … without doing anything! Just leave the aroundRadius query parameter unset! The radius will adapt itself to collect a few thousand records. Its value will also be returned in the result set (in the automaticRadius attribute). This information can help you display your map at the best scale. If you want to have a minimum radius size, we also introduced a query parameter called minimumAroundRadius that configures the minimum value that can be accepted as a radius.

We hope this new feature will help you and will make it super easy to have a good geo-search!

 

multi-geo

Several geolocations per record

Our previous geo-search was limited to only one geolocation per record. No more! Our new version now supports an arbitrary number of geolocations per record. You have just to use an array syntax.

Example of a record with one geolocation:


{
    "title": "Example",
    "_geoloc": { "lat": 47.279430, "lng": 5.106450 }
}

Example of a record with several geolocations:


{
    "title": "Example",
    "_geoloc": [
        { "lat": 47.279430, "lng": 5.106450 },
        { "lat": 47.293228, "lng": 5.004570 },
        { "lat": 47.316669, "lng": 5.016670 }
    ]
}

If your records contain several geolocations, you will be able to retrieve the matched geolocation and the distance in meters by requesting the ranking information (getRankingInfo=true query parameter).

Here is an example of a hit with several geolocations:


{
    "title": "Example",
    "objectID": "20",
    [...]
    "_rankingInfo": {
        [...]
        "matchedGeoLocation": {
            "lat": 47.316669,
            "lng": 5.016670,
            "distance": 1257
        }
    }
}

 

polygon-or

New ways to filter

In the past months, we have received several requests to improve the number of operators supported to filter by geolocation. We were only supporting filtering by a bounding box but we are now excited to offer three new types of filtering!

  • Filter by a polygon (defined by a list of point), you can look at the documentation of the insidePolygon query parameter
  • Filter by a OR between several bounding boxes, you have just to pass several times the insideBoundingBox query parameter
  • Filter by a OR between several polygons, you have just to pass several times the insidePolygon query parameter

We need your feedback!

We see an increasing number of users having geo-search needs, especially on mobile. We hope you will like this big evolution of our geo-search feature and that it will simplify your life! We would love to have your feedback and ideas on how to improve it, feel free to contact us anytime!

Get started with our tutorial

About the author
Julien Lemoine

Co-founder & former CTO at Algolia

githublinkedintwitter

Algolia documentation

It's extensive, clear, and, of course, searchable.

Read the docs
Algolia documentation

Recommended Articles

Powered byAlgolia Algolia Recommend

Geo-Spatial Search on Mobile: Quick but Not Dirty
engineering

Robert Mogos

How geo search improves search and discovery
product

Robert Mogos

Algolia's top 10 tips to achieve highly relevant search results
product

Julien Lemoine

Co-founder & former CTO at Algolia