フリーベース API に取り組んでいます。フリーベースから町に含まれる場所に関する情報を取得しようとしている JSON クエリがあります。
ウィキペディアの緯度と経度を使用したときに、入力地理位置情報に問題がありました。私が取得したジオロケーションを配置すると、freebase.com
正しく機能しますが、すべての町では機能しません。クエリに問題はありますか?
コード:
query = o("name",name,"type","/location/location","geolocation",a(o("latitude",latitude,
"longitude",longitude)),"contains", a(o("name",null,"id",null,"optional","optional","type","/location/location",
"geolocation",a(o("latitude",null,"longitude",null,"optional","optional")),"limit",800,"count",null)));
エラー:java.lang.NullPointerException