<?php$baseUrl = 'http://nominatim.openstreetmap.org/search?format=json&limit=1';$name = urlencode( 'Rosemont, IL, US' );$data = file_get_contents( "{$baseUrl}&q={$name}" );$json = json_decode( $data );var_dump( $json[0] );?>