The Fork The Spoon

FREEMIUM
By Api Dojo | Updated il y a un mois | Food
Popularity

9.6 / 10

Latency

2,667ms

Service Level

100%

Health Check

N/A

Back to All Discussions

queryPlaceValueCityId where?

Rapid account: Emilydeng 19
emilydeng19
il y a 2 ans

Hello,

I am trying to find the “queryPlaceValueCityId”. It says that it is a required field in the “restaurants/v2/list” endpoint and that it is the “value of id_city field returned in …/locations/list endpoint”.

However, if I go into the locations/v2/list endpoint, there isn’t an id_city field that pops up, only the “place_id”: “ChIJOwg_06VPwokRYv534QaPC8g”.

Where can I find this id_city?

Thank you,

Rapid account: Apidojo
apidojo Commented il y a un an

Again, Please send along your FULL requests step by step, starting from …//locations/v2/auto-complete endpoint to get further help.
In addition, this API reproduces PUBLIC data and features of thefork.com. You may try searching for restaurants in Fenton, Missouri USA on the site . I believe the site does not support that country.

Regards.

Rapid account: Rcoones 2
rcoones2 Commented il y a un an

Following the process from locations to restaurant/list I was trying to find restaurants in Fenton, Missouri USA and I get a location response, but no id_city.

{
“coordinates”: {
“latitude”: 38.5126456,
“longitude”: -90.4429881
***EXPECTED IT TO BE HERE, BUT IT IS NOT
},
“prediction”: {
“address_components”: [
{
“long_name”: “Fenton”,
“short_name”: “Fenton”,
“types”: [
“locality”,
“political”
]
},
{
“long_name”: “Bonhomme Township”,
“short_name”: “Bonhomme Township”,
“types”: [
“administrative_area_level_3”,
“political”
]
},
{
“long_name”: “St. Louis County”,
“short_name”: “St Louis County”,
“types”: [
“administrative_area_level_2”,
“political”
]
},
{
“long_name”: “Missouri”,
“short_name”: “MO”,
“types”: [
“administrative_area_level_1”,
“political”
]
},
{
“long_name”: “United States”,
“short_name”: “US”,
“types”: [
“country”,
“political”
]
}
],
“formatted_address”: “Fenton, MO, USA”,
“geometry”: {
“bounds”: {
“northeast”: {
“lat”: 38.557153,
“lng”: -90.4053189
},
“southwest”: {
“lat”: 38.500853,
“lng”: -90.476297
}
},
“location”: {
“lat”: 38.5126456,
“lng”: -90.4429881
},
“location_type”: “APPROXIMATE”,
“viewport”: {
“northeast”: {
“lat”: 38.557153,
“lng”: -90.4053189
},
“southwest”: {
“lat”: 38.500853,
“lng”: -90.476297
}
}
},
“place_id”: “ChIJD8Er8mrQ2IcRFYdMhBzMqqU”,
“types”: [
“locality”,
“political”
]
}
}

Rapid account: Apidojo
apidojo Commented il y a un an

Hello,

Please send along your FULL requests step by step, starting from …//locations/v2/auto-complete endpoint to get further help.

Regards.

Rapid account: Pamearch 10
pamearch10 Commented il y a un an

Hi, I am having the same issue. I did copy the response of /locations/v2/list into a text editor and the “id_city” is not included in the JSON. Can you please show where in the JSON this is showing up? It does look like it is missing.

Rapid account: Anchitbhatia 1
anchitbhatia1 Commented il y a 2 ans

I am also facing a similar issue. I have tried with different cities. I am able to get “place_id” from response of …/locations/v2/auto-complete but the response of …/locations/v2/list endpoint does not contain id_city. It return id_city only in the default example of Milan. Is it possible that there is a bug from server side?

Rapid account: Apidojo
apidojo Commented il y a 2 ans

Hello,

You should read parameter description to know how to get the correct value for required parameters, and know the relationship between endpoints.
The steps are : …/locations/v2/auto-complete -> …/locations/v2/list -> …/restaurants/v2/list

Regards.

Rapid account: Gashraf 2001
gashraf2001 Commented il y a 2 ans

how can i find the queryPlaceValueCityId

Rapid account: Arielleelak
arielleelak Commented il y a 2 ans

Hi there!

I’ve checked all the location and restaurant endpoints and in all the JSON (even searching with a text editor) I was not able to find “id_city”. Please advise where we should be able to find this value.

Rapid account: Apidojo
apidojo Commented il y a 2 ans

Well, what was your request made to …/locations/v2/list? You should paste the response data in any text editor and use its search feature to look for “id_city” field instead of your plain eyes.

Regards.

Join in the discussion - add comment below:

Login / Signup to post new comments