This commit is contained in:
syuilo 2018-03-05 09:22:28 +09:00
parent 8d7d0c2e6f
commit f9663018ad
2 changed files with 4 additions and 4 deletions

View File

@ -41,8 +41,8 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
// Get 'geo' parameter // Get 'geo' parameter
const [geo, geoErr] = $(params.geo).optional.nullable.strict.object() const [geo, geoErr] = $(params.geo).optional.nullable.strict.object()
.have('latitude', $().number().range(-180, 180)) .have('latitude', $().number().range(-90, 90))
.have('longitude', $().number().range(-90, 90)) .have('longitude', $().number().range(-180, 180))
.have('altitude', $().nullable.number()) .have('altitude', $().nullable.number())
.have('accuracy', $().nullable.number()) .have('accuracy', $().nullable.number())
.have('altitudeAccuracy', $().nullable.number()) .have('altitudeAccuracy', $().nullable.number())

View File

@ -140,12 +140,12 @@ props:
type: "number" type: "number"
optional: false optional: false
desc: desc:
ja: "緯度。-180〜180で表す。" ja: "緯度。-90〜90で表す。"
- name: "longitude" - name: "longitude"
type: "number" type: "number"
optional: false optional: false
desc: desc:
ja: "経度。-90〜90で表す。" ja: "経度。-180〜180で表す。"
- name: "altitude" - name: "altitude"
type: "number" type: "number"
optional: false optional: false