以下のコードは、演習 10 終了時の GooglePlaceRecords.egl ファイルのテキストです。
package services;
Record PlaceSearchResponse
status string;
result Result[];
html_attribution string;
next_page_token string;
end
Record Result
name string;
vicinity string;
type1 string[] {@XMLElement{name = "type"}};
geometry Geometry;
rating string?;
icon string;
reference string;
id string;
opening_hours Opening_hours?;
photo Photo?;
price_level string?;
end
Record Geometry
location Location;
end
Record Location
lat string;
lng string;
end
Record Opening_hours
open_now string;
end
Record Photo
photo_reference string;
width string;
height string;
html_attribution string?;
end