Distance between two cities in php
<p>I want to display events occuring near my city from the database.I tried to calculate the distance between the given city and my city using Google distance API. But the problem is that the distance is in javascript and I have to compare this with some integer to determmine whether to list the event or not and repeat this process for each event. Is there any way to pass value from javascript to php other than ajax or any other method to calculate the distance between two cities?</p>
