Geo Location API and finding user within a radius

前端 未结 2 1615
借酒劲吻你
借酒劲吻你 2021-01-15 15:42

I have a Java application and I would like to find out the location of a visitor. The API would give me a the zip code of visitor and then based on that zip code, I will fin

2条回答
  •  走了就别回头了
    2021-01-15 16:15

    I don't know how accurate it is, but have you looked at IPinfoDB? They'll return XML and JSON results but you'll need to register for an API key. It doesn't provide anything for a radius though, but for nearby zipcodes, you can use something like this: http://www.geonames.org/export/web-services.html#findNearbyPostalCodes

提交回复
热议问题