Specify Minetype in Intent for geojson type in Android

1

I have an app that generates a track in geojson format and I would like to give the possibility to share the file using intent in Android, but in minetype specific application/json but of course that makes any app that can read json can be opened.

What I want is if there is a specific minetype for geojson ?

    
asked by Webserveis 09.11.2017 в 13:43
source

2 answers

1

A little information about the GeoJSON format:

  

GeoJSON : This type of media is intended for GeoJSON applications   that currently use media types   "application / vnd.geo + json" or "application / json", of which there is   several categories: web mapping, geospatial databases, API   geographic data processing, data analysis and services   storage and dissemination of data.

But currently using for files GeoJSON a MIME TYPE :

application/vnd.geo+json 

is obsolete .

This is the statute:

  

The media type for GeoJSON text is "application / geo + json" and   is registered in the "Media Types" record described in    [RFC6838] . The entry for "application / vnd.geo + json" in it   record must change its status to be "OBSOLETE" with a   pointer to the media type "application / geo + json" and a reference   added to this RFC.

therefore should be used :

application/geo+json

or

application/json

This is the current list defined by the IANA:

link

    
answered by 09.11.2017 / 16:45
source
1

In the reference RFC7946 the mine-type for files is defined of geojson format,

can be defined with value application/json

or specifically application/vnd.geo+json

    
answered by 09.11.2017 в 16:22