Skip to main content
Solved

Connect to Mapillary API

  • December 12, 2022
  • 4 replies
  • 152 views

Hi,

 

I have tried to follow the suggestions in this thread to connect to Mapillary API without success.

https://community.safe.com/s/question/0D54Q00008vZLePSAW/hi-have-anybody-succeeded-in-connecting-the-mapillary-api-v4-with-fme-workbench-i-get-stuck-on-an-internal-server-error-when-i-use-httpslocalhost-as-redirect-url-in-the-oauth-20-webservice-authentification

 

I am using these settings:

mapillary_settingsI am just getting a login page when I test the service:

Mapillary2 

Any suggestions? The result is the same with http://localhost and https://localhost. It is the same when adding Authorization under HTTP Header for Retrieve Token Parameters.

 

Anyone got any suggestions on how to connect to the API and for example get coverage tiles.

Best answer by natalieatsafe

@leif​ While creating the Web Connection, after you clicked "Authorize" on the Mapillary login, did you happen to see a Retrieving access token dialog flash on your screen? It would have been pretty quick, but it's the check for the access token. It looks like this:

 

AuthenticateWebConnection_AccessToken 

If this dialog didn't appear on your screen, there's an adjustment to the web service definition that you may need to make. I would suggest trying to create that web connection again, and then keeping an eye on your screen after you click "Authorize" on the Mapillary login. Let me know if you see the dialog flash on your screen.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

natalieatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 117 replies
  • December 14, 2022

@leif​ Hi there, thanks for your question. This login page is expected when you test your web service definition out. Have you tried entering in your Mapillary login credentials and allowing FME to access your Mapillary account?

 

Just a note here, the redirect URI should be https://localhost/, and this should also be the redirect URI that you specified when you registered FME as an authorized app from within your Mapillary account space.


  • Author
  • 15 replies
  • December 15, 2022

@leif​ Hi there, thanks for your question. This login page is expected when you test your web service definition out. Have you tried entering in your Mapillary login credentials and allowing FME to access your Mapillary account?

 

Just a note here, the redirect URI should be https://localhost/, and this should also be the redirect URI that you specified when you registered FME as an authorized app from within your Mapillary account space.

Thank you for your response, @natalieatsafe​. When I enter my login credentials I get to click "Authorize". After that, the page disappears. Looking at the Mapillary API management site this action created a session, so it seems to have some sort of working connection. The problem now is that when I try to create the web connection, I can't. The disappearance of the "Authorize" page is the only thing that happens, and no new connection is created.

1)

web connection2) After clicking authorize

web connection2 

I would expect that default behavior would be that the authorize button is replaced by a save button or that the web connection is automatically saved when everything is correct?


natalieatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • 117 replies
  • Best Answer
  • December 15, 2022

@leif​ While creating the Web Connection, after you clicked "Authorize" on the Mapillary login, did you happen to see a Retrieving access token dialog flash on your screen? It would have been pretty quick, but it's the check for the access token. It looks like this:

 

AuthenticateWebConnection_AccessToken 

If this dialog didn't appear on your screen, there's an adjustment to the web service definition that you may need to make. I would suggest trying to create that web connection again, and then keeping an eye on your screen after you click "Authorize" on the Mapillary login. Let me know if you see the dialog flash on your screen.


  • Author
  • 15 replies
  • December 16, 2022

@leif​ While creating the Web Connection, after you clicked "Authorize" on the Mapillary login, did you happen to see a Retrieving access token dialog flash on your screen? It would have been pretty quick, but it's the check for the access token. It looks like this:

 

AuthenticateWebConnection_AccessToken 

If this dialog didn't appear on your screen, there's an adjustment to the web service definition that you may need to make. I would suggest trying to create that web connection again, and then keeping an eye on your screen after you click "Authorize" on the Mapillary login. Let me know if you see the dialog flash on your screen.

After restarting everything and revoking access to get a fresh start, somehow everything worked and I could create my web connection. No idea what the problem was, but thank you!