私は会場を検索して複写所を返しました。重複会場は、会場IDと緯度/経度情報を除いて同一でした。 foursquare.comで同じ検索を行い、複製は表示されません。複製をどのように除外できますか?ここで会場検索apiが間違った緯度/経度の重複会場を返す
APIコール(マイナス秘密)されています https://api.foursquare.com/v2/venues/search?ll=38.468807,-77.372589&query=starbucks
結果:
{
meta: {
code: 200
}
notifications: [
{
type: "notificationTray"
item: {
unreadCount: 0
}
}]
response: {
venues: [
{
id: "4e4dc886bd41b76bef93082e"
name: "Starbucks Coffee"
contact: {
phone: "5407209145"
formattedPhone: "(540) 720-9145"
}
location: {
address: "1495 Stafford Market Pl"
lat: 38.47310969662029
lng: -77.38591645407749
distance: 1256
postalCode: "22556"
city: "Stafford"
state: "VA"
country: "United States"
}
categories: [
{
id: "4bf58dd8d48988d1e0931735"
name: "Coffee Shop"
pluralName: "Coffee Shops"
shortName: "Coffee Shop"
icon: {
prefix: "https://foursquare.com/img/categories/food/coffeeshop_"
sizes: [ 32 44 64 88 256 ]
name: ".png"
}
primary: true
}]
verified: false
stats: {
checkinsCount: 13
usersCount: 11
tipCount: 0
}
specials: {
count: 0
items: [ ]
}
hereNow: {
count: 0
}
},
{
id: "4b8dd66ef964a520071033e3"
name: "Starbucks"
contact: {
phone: "5407209145"
formattedPhone: "(540) 720-9145"
}
location: {
address: "1495 Stafford Market Place"
crossStreet: "Garrisonville Road"
lat: 38.470214117289444
lng: -77.41142749786377
distance: 3388
postalCode: "22554"
city: "Stafford"
state: "VA"
country: "United States"
}
categories: [
{
id: "4bf58dd8d48988d1e0931735"
name: "Coffee Shop"
pluralName: "Coffee Shops"
shortName: "Coffee Shop"
icon: {
prefix: "https://foursquare.com/img/categories/food/coffeeshop_"
sizes: [ 32 44 64 88 256 ]
name: ".png"
}
primary: true
}]
verified: true
stats: {
checkinsCount: 1885
usersCount: 522
tipCount: 14
}
url: "http://www.starbucks.com/"
specials: {
count: 0
items: [ ]
}
hereNow: {
count: 0
}
menu: {
url: "https://foursquare.com/v/starbucks/4b8dd66ef964a520071033e3/menu"
mobileUrl: "https://foursquare.com/v/4b8dd66ef964a520071033e3/device_menu"
}
},
{
id: "4d87c7bba98841bd5eaf3055"
name: "Starbucks"
contact: {
phone: "5407209145"
formattedPhone: "(540) 720-9145"
twitter: "starbucks"
}
location: {
address: "1495 Stafford Market Place"
lat: 38.50188672
lng: -77.37500964
distance: 3688
postalCode: "22556"
city: "Stafford"
state: "Virginia"
country: "United States"
}
categories: [ ]
verified: true
stats: {
checkinsCount: 17
usersCount: 11
tipCount: 0
}
specials: {
count: 0
items: [ ]
}
hereNow: {
count: 0
}
}
}
}
第二会場、ID = 4b8dd66ef964a520071033e3は、実際のです。他の2つは重複しています。
あなたは、実際のAPIコール(マイナス秘密)と結果を提供することができますか?詳細な説明なしにデバッグを手助けすることは不可能です。 – akdotcom