The requirement is to track a list of Earthquakes after the user inputs the City name. I'm able to successfully send the City (and state + country etc.) name to the Google Maps API of GeoCoding (https://developers.google.com/maps/documentation/geocoding/start) and get the latitude and longitude. But the issue is, the webservice, which gives the Earthquake data (http://www.geonames.org/export/JSON-webservices.html#earthquakesJSON) accepts only 4 values as REST API parameters, which are North, South, East and West (http://api.geonames.org/earthquakesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&username=demo). So my question is: Is there a way to convert Latitude and longitude into N, S, E and W values of is there a way to receive N, S, E and W values form the Google maps API?