get location details dynamically