refactored method that gives long lat a geojson-like format