Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql ArcGIS REST地理编码数据的Uniquie标识符检查_Mysql_Database Design_Gis_Arcgis_Arcgis Js Api - Fatal编程技术网

Mysql ArcGIS REST地理编码数据的Uniquie标识符检查

Mysql ArcGIS REST地理编码数据的Uniquie标识符检查,mysql,database-design,gis,arcgis,arcgis-js-api,Mysql,Database Design,Gis,Arcgis,Arcgis Js Api,我正在查询并规范化用户输入离散数据的地址字符串。标准化返回数据的示例: VALID (RFC 8259) Formatted JSON Data { "spatialReference":{ "wkid":102100, "latestWkid":3857 }, "candidates":[ { "address":"

我正在查询并规范化用户输入离散数据的地址字符串。标准化返回数据的示例:

VALID (RFC 8259)
Formatted JSON Data
{
   "spatialReference":{
      "wkid":102100,
      "latestWkid":3857
   },
   "candidates":[
      {
         "address":"12 Queen Street, Melbourne Central, Melbourne, 1010",
         "location":{
            "x":19454998.013352692,
            "y":-4417395.0764459781
         },
         "score":100,
         "attributes":{
            "Match_addr":"12 Queen Street, Melbourne Central, Melbourne, 1010",
            "Addr_type":"PointAddress",
            "StNumber: 12",
            "StName: Queen",
            "StType: Street",
            "StAddr":"12 Queen Street",
            "City":"Melbourne",
            "Country: AUS"
         },
         "extent":{
            "xmin":19454886.693861898,
            "ymin":-4417534.1797140706,
            "xmax":19455109.33284349,
            "ymax":-4417255.9749970241
         }
      }
   ]
}
该GIS数据将本地存储在数据库中,其中包含以下字段:

coords :POINT(X,Y)
match_addr: varchar
addr_type: varchar
st_addr: varchar
city: varchar
将来,如果再次调用ArcGIS地理编码API并返回相同的地址,我需要一种方法来检查本地数据库,以确保本地不存在相同的地址

结果中没有返回UID,我不能使用任何依赖于坐标的东西,因为公寓楼可能共享相同的坐标,但地址不同


我是否可以使用匹配地址字符串检查本地表中的现有条目,或者是否有更好的方法?

该数据示例将存储什么?显示不同位置的第二个示例和相同“公寓楼”但不同实体的第二个示例。该数据示例将存储什么?显示不同位置的第二个示例,以及相同“公寓楼”但不同实体的第二个示例。。