{"id":22192579,"url":"https://github.com/3sidedcube/android-geogson","last_synced_at":"2025-08-31T19:36:30.011Z","repository":{"id":15555889,"uuid":"18290997","full_name":"3sidedcube/Android-GeoGson","owner":"3sidedcube","description":"Simple dynamic GeoJson parsing utility for Java, with support for Elasticsearch","archived":false,"fork":false,"pushed_at":"2022-06-30T09:02:58.000Z","size":145,"stargazers_count":9,"open_issues_count":1,"forks_count":8,"subscribers_count":9,"default_branch":"master","last_synced_at":"2023-08-22T07:10:40.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"husainshabbir/form-filler","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3sidedcube.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-03-31T11:35:36.000Z","updated_at":"2023-05-25T05:56:00.000Z","dependencies_parsed_at":"2022-08-25T09:21:45.198Z","dependency_job_id":null,"html_url":"https://github.com/3sidedcube/Android-GeoGson","commit_stats":null,"previous_names":[],"tags_count":14,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-GeoGson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-GeoGson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-GeoGson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3sidedcube%2FAndroid-GeoGson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3sidedcube","download_url":"https://codeload.github.com/3sidedcube/Android-GeoGson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227726685,"owners_count":17810514,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T12:26:38.102Z","updated_at":"2024-12-02T12:26:38.788Z","avatar_url":"https://github.com/3sidedcube.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#GeoGson\n\nGeoGson is a Gson implementation of the GeoJson specification (with some unofficial object support)\n\n##Types supported\n\n1. Circle (unofficial support)\n1. Feature\n1. LineString\n1. MultiLineString\n1. Polygon\n1. MultiPolygon\n1. Point\n1. MultiPoint\n\n##Usage with custom gson parsers\n\nIn order for the gson to correctly inflate into geojson objects, you must make sure to include the type adapter so that gson can detect and inflate the geojson objects correctly.\n\n```java\nGsonBuilder builder = new GsonBuilder();\nbuilder.registerTypeAdapter(GeoJsonObject.class, new GeoJsonObjectAdapter());\nbuilder.registerTypeAdapter(LngLatAlt.class, new LngLatAltAdapter());\n```\n\nYou can use the methods found in `GeoGson` to automatically add these adapters to your builder object, or create a new gson instance with the adapters already added\n\n```java\nGeoJson.getGson()\nGeoJson.registerAdapters(GsonBuilder builder)\n```\n\n##Example\n\n```java\nGsonBuilder builder = new GsonBuilder();\nGeoJson.registerAdapters(builder);\n\nGeoJsonObject point = builder.create().fromJson(\"{ \\\"type\\\": \\\"Point\\\", \\\"coordinates\\\": [100.0, 0.0] }\", GeoJsonObject.class);\nSystem.out.println(point instanceof Point);\n```\n\nThis will automatically parse the provided JSON string into its correct class (in this case, a point)\n\n##Maven\n\nTo include the project, add the following to your `build.gradle`\n\n```\ncompile 'com.3sidedcube.util:GeoGson:1.6'\n```\n\n##License\n\nSee [LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fandroid-geogson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3sidedcube%2Fandroid-geogson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3sidedcube%2Fandroid-geogson/lists"}