Extract coordinates from JSON response
Improve code documentation