sbrattla
sbrattla

Reputation: 5386

How do I restriction a Google Places Search to a specific country?

The documentation says how I can limit searches to a country by using componentRestrictions. However, the documentation apparently only relates to JavaScript.

I'm doing a regular request from a PHP application, and need to limit a place search to a country. However, I can't see how I can limit search results to a country using a regular GET request.

Upvotes: 2

Views: 518

Answers (1)

Bolu
Bolu

Reputation: 8786

I believe you can just add components=country:XX to your request URL :)

Upvotes: 2

Related Questions