Get all records from MySQL database that are within Google Maps .getBounds?

前端 未结 10 1059
既然无缘
既然无缘 2020-12-02 12:53

Ok I have a database with about 1800 rows, each has a column lat and long, what I am trying to do, it query against Google Maps V3 .getBounds

10条回答
  •  我在风中等你
    2020-12-02 13:16

    if from Google: ( (a, b), (c, d) )

    SELECT * FROM tilistings WHERE lat > a AND lat < c AND lng > b AND lng < d

提交回复
热议问题