peresisUser
peresisUser

Reputation: 1686

Google Places API language=en returns results in other languages

I'm sending the request like this: https://maps.googleapis.com/maps/api/place/nearbysearch/json?&key=ENTER_YOUR_KEY_HERE&name=&types=restaurant&location=35.79067650569248,107.49634109437466&radius=521711.0&language=en

The query is in China.

and i'm getting results like this:

results: [
    {
    geometry: {
    location: {
    lat: 35.737293,
    lng: 107.646029
    }
    },
    icon: "https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
    id: "759bdf36fa8d5182c6cecb8839d21f5db691ab04",
    name: "海底捞火锅西峰店",
    place_id: "ChIJwQHr9-k9ZjYRkNpSDzYpfTo",
    reference: "CnRrAAAAkM6HlYVwL2mO2sefdojOY7cqX9lQtA_OWt2pFzyGW7p6lj-1oSqFnX3q7_iJtDBGIcoRhqMxriUEXCD4Y8QaBZXhX_7IiqgO_2xHYHN9nWEKOYuPWmuj1V5nTy-D_w-im2OcZVoblKayGDuo2xJTiBIQ2DySEk1zgG1UDKHFnzBxTRoUqsR3fT9UOHrRwOj-hQZZygqxiWo",
    scope: "GOOGLE",
    types: [
    "restaurant",
    "food",
    "point_of_interest",
    "establishment"
    ],
    vicinity: "Xifeng, Qingyang"
    },

the name is in Chinese. is there something i can do?

Upvotes: 1

Views: 2612

Answers (1)

spiv
spiv

Reputation: 2518

MrUpsidown in the comments is correct: there's no English name for this place in Google's database, so returning the Chinese name Google does have is the best the Places API can do here.

Upvotes: 1

Related Questions