#pragma once #include #include #include "geometry.hpp" #include "../java/util.hpp" #include namespace mbgl { namespace android { namespace geojson { class Polygon { public: using SuperTag = Geometry; static constexpr auto Name() { return "com/mapbox/geojson/Polygon"; }; static constexpr auto Type() { return "Polygon"; }; static jni::Local> New(jni::JNIEnv&, const mbgl::Polygon&); static mapbox::geojson::polygon convert(jni::JNIEnv &, const jni::Object&); static mapbox::geojson::polygon convert(jni::JNIEnv&, const jni::Object>*/>&); static jni::Local> coordinates(jni::JNIEnv&, const jni::Object&); static void registerNative(jni::JNIEnv &); }; } // namespace geojson } // namespace android } // namespace mbgl