I have some questions about google places api for android.
This is a request that is called:
https://maps.googleapis.com/maps/api/place/autocomplete/json?sensor=false&key=API_KEY&components=country:hr&language=hr&input=lad
The problem is that I only want addresses in a specific city. Is it possible?
Here is a quote from the Google Places API Autocomplete that suggests it should work.
Blockquote A collection of types (regions) tells the Place service to return any result that matches the following types:
Blockquote A collection of types (cities) tells the Place service to return results matching either the locale or Administrative_area3.
Therefore, I would like to specify a quote or postal code to filter out only addreses from this city.
- EDIT -
This approach also does not work.
maps.googleapis.com/maps/api/place/autocomplete/json?sensor=false&key=API_KEY&types=geocode&location=45.811093,15.974121&radius=12000&components=country:hr&language= h & entry = lad
Decision
I added the name CIty to the input line
city_name + street, like Zagreb + fal, to get all the streets from Zagreb with fal * on their behalf.
Oke seems to work.
Source: https://habr.com/ru/post/1480424/More articles:stored procedure use in ASP.NET - c #Fatal error: throw exception SoapFault: [Client] SOAP-ERROR: encoding: object does not have the "source" property in - soapHow to extract the embedded archive to disk during the installation process - inno-setupRecently added elements using jQuery do not have proper CSS usage - jqueryYou no longer need to enclose attribute values ββin HTML5 with quotation marks? - html5ios UIScrollview skips scroll event to view - iosTimestamp as a watermark on an iOS video - iosIntellij idea indent on wrapper - intellij-ideaComparing Enum Sort Values ββ- comparisonUICollectionView reload error - iosAll Articles