Obtaining more than 20 results with Google Places API

前端 未结 6 1740
Happy的楠姐
Happy的楠姐 2020-12-23 20:16

I want to develop a map application which will display the banks near a given place.

I use the Places library to search and everytime it just return 20 results. What

6条回答
  •  盖世英雄少女心
    2020-12-23 21:00

    If the problem is that not all banks that exists inside the search radius might not be returned, I would suggest limiting the search radius instead of issuing multiple automated queries.

    Set the radius to some value in which it is impossible to get more then 20 (60) banks. Then make it easy (GUI-wise) for the user to hammer out more queries manually - sort of painting a query.

    Returning thousands of banks in a larger region will likely require you to rely on your own database of banks - which could be achievable if you work on it systematically.

提交回复
热议问题