MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.24k stars 21.41k forks source link

POST Closest Point No Longer Working? #34342

Closed SeaDude closed 5 years ago

SeaDude commented 5 years ago

Creating an issue

We prefer that you create documentation feedback issues using the Feedback link on the published article - the feedback control on the doc page creates an issue that contains all the article details so you can focus on the feedback part.

You can also create a feedback issue here in the repo. If you do this, please make sure your issue lists:

Response Code: 400
Headers
HTTP

Copy
content-length: 428
content-type: application/json; charset=utf-8
date: Mon, 01 Jul 2019 22:21:44 GMT
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-correlation-id: fc81cd35-a61d-470a-99e1-f3217a6320ec
x-ms-azuremaps-region: West US 2
Body
{
  "error": {
    "code": "UserData",
    "message": "The property 'type' MUST be defined with a valid value of either point, linestring, polygon, multipoint, multilinestring, multipolygon, geometrycollection, feature, featurecollection.; The value '' is not valid for the property 'type'. The valid GeoJSON types include point, linestring, polygon, multipoint, multilinestring, multipolygon, geometrycollection, feature, featurecollection."
  }
}

My production runs which are based on this example no longer work either. Has something changed?

Thank you

mikeurnun commented 5 years ago

Hi @SeaDude Thank you for your feedback! Since this is a channel for driving improvements towards MS Docs, could you reference the URL of a specific documentation that you were following? That way, we're able to connect you with the right team that can assist you better :)

SeaDude commented 5 years ago

Hi there @mike-urnun-msft , its right there in the OP. Second check box "Link to Example".

SeaDude commented 5 years ago

After troubleshooting a while, I believe I figured out the issue:

{
  "FeatureCollection": 

... on the front end of the POST body.

The final } should also be removed to produce valid JSON.

SeaDude commented 5 years ago

I want a pony and a raise

SeaDude commented 5 years ago

PS. Here is a geojson linter to help out in the future: http://geojsonlint.com/

SeaDude commented 5 years ago

PPS, I had Microsoft Flows running based on the Azure Maps Docs so either:

  1. The API Schema changed and the docs didn't keep up OR
  2. The docs changed Since there is no edit date on the docs, I can't tell which is which.