Skip to content

Commit

Permalink
Add MediaType for "application/geo+json".
Browse files Browse the repository at this point in the history
via #3243

RELNOTES=Add MediaType for "application/geo+json".

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=249531547
  • Loading branch information
kluever authored and ronshapiro committed May 28, 2019
1 parent 1ddcd27 commit 36cd5cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions android/guava/src/com/google/common/net/MediaType.java
Expand Up @@ -426,6 +426,14 @@ private static MediaType addKnownType(MediaType mediaType) {
*/
public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary");

/**
* Media type for the <a href="https://tools.ietf.org/html/rfc7946">GeoJSON Format</a>, a
* geospatial data interchange format based on JSON.
*
* @since NEXT
*/
public static final MediaType GEO_JSON = createConstant(APPLICATION_TYPE, "geo+json");

public static final MediaType GZIP = createConstant(APPLICATION_TYPE, "x-gzip");

/**
Expand Down
8 changes: 8 additions & 0 deletions guava/src/com/google/common/net/MediaType.java
Expand Up @@ -426,6 +426,14 @@ private static MediaType addKnownType(MediaType mediaType) {
*/
public static final MediaType APPLICATION_BINARY = createConstant(APPLICATION_TYPE, "binary");

/**
* Media type for the <a href="https://tools.ietf.org/html/rfc7946">GeoJSON Format</a>, a
* geospatial data interchange format based on JSON.
*
* @since NEXT
*/
public static final MediaType GEO_JSON = createConstant(APPLICATION_TYPE, "geo+json");

public static final MediaType GZIP = createConstant(APPLICATION_TYPE, "x-gzip");

/**
Expand Down

0 comments on commit 36cd5cf

Please sign in to comment.