duan19911992 2014-12-19 11:38
浏览 33

Google Places API natural_feature

I use the google places api autocomplete to save location, state and country from the hotels users of my web.

For example The search of Alcúdia, Illes Balears, Espanya returns me:

  • administrative_area_level_4:Alcudia
  • administrative_area_level_3:Raiguer
  • administrative_area_level_2:Islas Baleares
  • administrative_area_level_1:Islas Baleares
  • country:España

I store this data in my DB.

In my market web if I search hotels by those fields everything's fine but if I searh by 'natural_feature', I don't have enough data to match the places.

The search of 'Mallorca' returns me:

  • natural_feature: Mallorca
  • administrative_area_level_2: Islas Baleares
  • administrative_area_level_1: Islas Baleares
  • country:España

And the search of 'Menorca' returns me:

  • natural_feature: Menorca
  • administrative_area_level_2: Islas Baleares
  • administrative_area_level_1: Islas Baleares
  • country:España

Both are in the same administrative_area_level but they are different islands, so when I'm trying to know in which query should I match the hotels, some data is missing.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 2024-五一综合模拟赛
    • ¥15 下图接收小电路,谁知道原理
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度
    • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
    • ¥15 ETLCloud 处理json多层级问题
    • ¥15 matlab中使用gurobi时报错
    • ¥15 这个主板怎么能扩出一两个sata口
    • ¥15 不是,这到底错哪儿了😭