I am developing web application that deals with a shopping cart. Including customer registration and store registration.
When registering a store we are collecting the latitude and longitude of the store position. Once the store releasing any notifications, first needs to check the Customer addresses having 1 KM radius of the store position.
Only the satisfied customers want the notification.
I am collecting the Latitudes and longitudes of 1 KM range with Here Map API.
The response of the above API is a bunch of Latitudes and Longitudes.
How can I check my Store latitude and longitude is in this range of Geo-codes.
I tried in_array function of PHP and not accurate with that. Is there any other solution for this ?
Thanks