Geographic JSON 简称GeoJson,是一种使用json格式的地理信息数据结构。
1 | { |
GeoJson支持的地理信息格式有Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon。
有额外属性的地理信息主体(Geometric objects)称为Feature,Feature集合称为FeatureCollection。
上述例子中,为Point Feature,经纬度坐标为125.6,10.1,有一个name属性,该Point的name为”Dinagat Islands”。
A GeoJSON FeatureCollection:
1 | { |
更多详细的信息可以参考The GeoJSON Specification (RFC 7946)