Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

지도 API에서 넘어오는 에러 처리 #44

Open
jinios opened this issue Oct 1, 2018 · 1 comment
Open

지도 API에서 넘어오는 에러 처리 #44

jinios opened this issue Oct 1, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jinios
Copy link
Owner

jinios commented Oct 1, 2018

현상

  • 마트 주소를 보내서 지도에 표시할 수 있도록 좌표로 변환하는 api에서 error반환
  • 네이버지도 API 플레이그라운드에서 확인결과 몇몇 마트 주소를 요청으로 보냈더니 에러 응답. { "errorMessage": "검색 결과가 없습니다.", "errorCode": "MP03" }
  • 서울 송파구 신천동 올림픽로 300처럼 구주소 '동'과 신주소 '로'가 같이 있으면 주소를 찾을 수 없다는 에러 반환
  • '동'을 빼고 신주소로만 검색했더니 좌표 표시됨

해결방향

  • 주소가 아예 잘못 들어가있는 경우도 있기때문에(마트 홈페이지에서 가져오는 정보에) 일단 지도를 표시할 수 없으면 이를 나타내는 에러화면을 띄울것
  • 신주소와 구주소가 함께 있는 주소에서 에러발생하는 케이스는 밝혀졌으므로 에러상황시 한번더 주소를 수정해서 체크하는 로직 추가
@jinios jinios added the bug Something isn't working label Oct 1, 2018
@jinios jinios self-assigned this Oct 1, 2018
@jinios
Copy link
Owner Author

jinios commented Oct 2, 2018

에러 화면 띄웠을 시 MapViewController를 호출하는 tap gesture를 비활성화하는 기능 추가하기

<flow>

  • MartMapDelegate가 mapView 부분에 표시할 뷰에 따라서 gesture의 유무 처리
  • 뷰에서 gesture 감지하면 다음화면(MapViewController)로 push가 필요할땐 ViewController로 noti보내기
  • (기존엔 DetailVC에서 직접 userInteraction과 addGesture를 관리함)

jinios added a commit that referenced this issue Oct 5, 2018
jinios added a commit that referenced this issue Oct 5, 2018
jinios added a commit that referenced this issue Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant