Unbiasing Duplicate Or Miss-spelt Locations -
Internet Connection Lost!
Please check your internet connection.
OK
×
 

Travel Explora Hub


×
 
Signing out...
Our Website


Agents


Travel Gems relies on over 28 Aggregators and API service providers to gather crucial and important information about establishments that focus on travel and Tourism.

To ensure that our guests, clients, as well as the locations, get fair reviews, ratings and price options, we need our system to be as accurate as possible.

But it can be quite challenging, especially when it comes to misspelt names, duplicate names, or even businesses that share the same name.

So, how do we solve this?

Meet, Mr Vladimir Levenshtein, a Soviet mathematician and computer scientist, introduced the concept of Levenshtein Distance. Born in 1935, Levenshtein made significant contributions to the field of information theory and string processing.

Mr Levenshtein formulated a solution to measure the difference between two strings.

Now when we refer to the word “string”, we don’t mean a physical sting, but instead, a string in this case is a location name, and the distance we are referring to is not physical distance, but the “distance” as to how far the similarities are to each location name the aggregators provide us with.

In this instance, if we have a number of Travel locations with similar names, we then apply the Levenschtein process to calculate probabilities to ensure the aggregators and API’s are giving us the correct results.

Example

Let’s compare two hotel names:

  1. “Grand Hotel Paris”
  2. “Grand Hotel Berlin”

Steps to Compute the Levenshtein Distance:

  1. Substitute ‘P’ with ‘B’ to get “Grand Hotel Bairs”.
  2. Substitute ‘a’ with ‘e’ to get “Grand Hotel Beirs”.
  3. Substitute ‘i’ with ‘l’ to get “Grand Hotel Beilrs”.
  4. Substitute ‘r’ with ‘n’ to get “Grand Hotel Berlin”.

It takes 4 operations to transform “Grand Hotel Paris” into “Grand Hotel Berlin”, so the Levenshtein Distance between “Grand Hotel Paris” and “Grand Hotel Berlin” is 4.

Algorithm

The Levenshtein Distance can be computed using a dynamic programming approach. Here’s a high-level explanation of the algorithm:

  1. Create a Matrix: Initialize a matrix where the cell d[i][j] represents the Levenshtein Distance between the first i characters of the first string and the first j characters of the second string.

  2. Initialize Matrix:

    • The distance between an empty string and a string of length j is j (i.e., d[0][j] = j).
    • The distance between a string of length i and an empty string is i (i.e., d[i][0] = i).
  3. Fill the Matrix:

    • For each cell d[i][j], calculate the minimum of:
      • Insertion: d[i][j-1] + 1
      • Deletion: d[i-1][j] + 1
      • Substitution: d[i-1][j-1] + cost (where cost is 0 if the characters are the same, 1 if they are different).
  4. Retrieve the Distance: The value in d[m][n] (where m and n are the lengths of the two strings) represents the Levenshtein Distance.

Convert this into a script:

Levenschtein PHP

And that’s it!

That is how we can ensure that our Travel Gems and travel destinations are truly getting the coverage they deserve, and for our clients to be sure they are getting accurate, and the best locations listings.



More in this Category

Travel Agents

Businesses Nominated for a Travel Gem

Article
Travel Explora Hub is all about giving our guests and clients a unique travel experience. List your business on Travel Gems today.
Travel Agents

About Our Travel Gem Mystery Guests

Article
At Travel Explora Hub, we aim to ensure our guests have amazing travel experiences. That's why we created Travel Gems to promote tourism.
Travel Agents

Our formulas to calculate ratings

Article
Travel Agents

Unbiasing Duplicate Or Miss-spelt Locations

Article
Travel Gems relies on over 28 Aggregators and API service providers to gather crucial information about establishments that focus on travel.
Travel Agents

About Travel Gems

Article
Travel Gems is dedicated to uncovering restaurants, points of interest, accommodation,, allowing travellers to enjoy their experiences.
Travel Agents

Tripadvisor: Are You Maximizing The Potential?

Article
Boost your business with a standout TripAdvisor profile! Use our handy checklist to ensure your profile is optimized and ready to attract more bookings!
Travel Agents

Digital Guides: New To Tripadvisor?

Article
TripAdvisor is a powerful platform that helps travelers make informed decisions. Learn how to optimize your TripAdvisor profile, respond to reviews, boost visibility, and engage customers to increase bookings and grow your business.
Travel Agents

Maximising Your Google Business Profile

Article
Get noticed on Google Search, Google Maps, and beyond with trust-building reviews, regular updates, and direct customer engagement. Use our checklist to enhance your profile and improve your business's online presence today!
Travel Agents

The Correct Way To Manage Social Media Reviews

Article
Master the art of managing customer reviews with these expert tips! From politely encouraging reviews to responding like a pro, learn how to engage with feedback, boost your reputation, and keep your business shining online.
Travel Agents

The Ultimate Guide To Building Backlinks For Any Business

Article
Learn how to build high-quality backlinks to improve your website's SEO, drive traffic, and boost credibility. Explore strategies for businesses of all types to earn backlinks effectively.
Travel Agents

Collaborative Blogs, Quizes And Articles

Article
Boost your digital marketing by collaborating with Travel Explora Hub! Engage travelers with quizzes, articles, and blogs while increasing visibility and brand authority. Get featured today!
Travel Agents

Introducing Our AI-Assisted Review Creator: Making Travel Reviews Effortless

Article
Struggling to write travel reviews? Our AI-assisted review creator makes it easy! Generate a detailed, natural-sounding review based on your feedback and simply copy & paste. Save time and share your experience effortlessly!
Travel Agents

How To Use Our Review Assistant Link and QR Codes

Article
Learn how to use our Review Assistant to easily collect client reviews with AI-generated suggestions. Share the link or print a QR code for seamless feedback collection on your marketing materials.
Travel Agents

What Is W3C And Why Is It Necessary Of Your Website?

Article
Learn what W3C is, why it’s important for website standards, and how following its guidelines ensures a better, more accessible web for everyone.
Travel Agents

What Is Google PageSpeed Insights And Why Is It Important?

Article
Learn how Google PageSpeed Insights can help improve your website’s speed, enhance user experience, and boost your search engine rankings. Discover simple tips to make your site faster and more mobile-friendly.
Travel Agents

How Travel Explora Hub Uses APIs to Curate Travel Gems

Article
Discover how Travel Explora Hub uses APIs from Agoda, TripAdvisor, Booking.com, and Google to gather real-time data on top-rated hotels, restaurants, and attractions. Stay informed with the best Travel Gems!