Reporting Data Quality Issues

We appreciate all feedback regarding FSQ's data quality. Please use the guidelines in this document to understand how to provide feedback on any of the following issues:

  • Closed businesses
  • Relocated businesses (a business entity that has moved from one physical location to another)
  • Duplicated businesses (multiple factual records that refer to the same place)

Closed Businesses

If you discover any FSQ record that has been permanently closed, please submit all of the necessary attributes, according to our contribution guidelines, as well as the action field with a value of closed. Closed records should be submitted within the same file that you submit all of your other data.

Example

action

name

address

locality

region

postcode

country

closed

Joe's Pizza

123 Main St.

Los Angeles

CA

90064

US

Relocated Businesses

When a business moves locations, FSQ considers the old location as closed and the new address as the business's new location. For such relocations, please submit the old location with closed in the action field and submit the new location as you would submit any record, using our contribution guidelines.

Example
Joe's Pizza on 456 First St. has moved to 123 Main St.

action

name

address

locality

region

postcode

country

closed

Joe's Pizza

456 Main St.

Los Angeles

CA

90064

US

Joe’s Pizza

456 Olympic Ave.

Los Angeles

CA

90067

US

Duplicated Businesses

For any records that are duplicates of the same POI at the same location, please submit unwanted Foursuqare IDs as the flagged_id and the persisting Foursquare ID as the preferred_id along with duplicate in the action field. As always, the POI's country, represented by the country code, also needs to be included. Examples of submitting duplicates can be found below.

Additionally, please submit reports of duplicated businesses in a separate flags file to sftp.tdc.factual.com. The file should adhere to the following filename requirements and contain all of the required fields listed below. Other records will be ignored if found in the flags file.

Filename Requirements

[yyyymmdd]_[contributor-name]_FLAGS.tsv

Required Fields

Field Name

Should Contain

flagged_id

Foursquare ID of the duplicate record that should be merged into the preferred record

preferred_id

Foursquare ID of the preferred record, into which the duplicate record should be merged

action

duplicate

country

ISO 3166-1 alpha-2 country code

Other Considerations

  • preferred_id and flagged_id must be populated with valid Foursquare IDs
  • flagged_id should never match the preferred_id
  • To flag multiple duplicate rows for the same business, submit a separate row for each using the same preferred_id. You do not need to submit a separate row for the preferred row. See example 2 below.

Examples
Ex 1: Flagging two duplicate rows

In this example, two separate duplicate businesses are reported to FSQ. The first is a pair of US businesses, the second a pair of Canadian businesses. In the first, it is desired that fsq_id 4d436a0ebf61a1cd6ed0fdab will persist after the two are merged. Similarly, in the second, it is preferred that fsq_id 4e1b79bc7d8b8db6125c920a persists.

flagged_id

preferred_id

action

country

3b5b5f07d68a4210d75b5333

4d436a0ebf61a1cd6ed0fdab

duplicate

US

4cf012c0f368b1f7fc4989f7

4e1b79bc7d8b8db6125c920a

duplicate

CA

Ex 2: Flagging multiple duplicates of the same business

In this example, there are three FSQ rows for the same business. It is desired that fsq_id 4e1b79bc7d8b8db6125c920a persists and the two duplicates are removed.

flagged_id

preferred_id

action

country

4e4052a818a83d5b286a30fe

4e1b79bc7d8b8db6125c920a

duplicate

US

4eb8a8777ee5024d8061f5e7

4e1b79bc7d8b8db6125c920a

duplicate

US


Did this page help you?