본문 바로가기
728x90

개발456

foursquare 점령! 본인은 구글로 place를 하고 있었는데 좀 단점이 있다. 일단 식당 카테고리가 안 나온다(이게 제일 큼) detail 정보를 받아와도 그렇게 detail하지 않다. 그래서 일단 foursquare로 한 번 받아와보려고 한다. 2022. 12. 28.
firebase function list에 list 더하기 https://stackoverflow.com/questions/52101685/firestore-failed-to-merge-array-of-items-to-another-array-using-fieldvalue-array Firestore Failed to merge array of items to another array using FieldValue.arrayUnion() I have a cloud function that invoked when a certain event happened. In the function i will get an array of string for example let h:string[] = ["foo","bar","baz"] something similar to .. 2022. 12. 28.
지도에 해당 지점이 어떤 지역 안에 있는 지 판별하기 https://pub.dev/packages/maps_toolkit PolygonUtil.containsLocation - computes whether the given point lies inside the specified polygon. maps_toolkit | Dart Package Maps toolkit - geo-measurements utils - area of polygon, distance between point, heading and offset between points (port of SphericalUtil, PolyUtil from `android-maps-utils`). pub.dev 까먹을까봐 결론부터 적어놓고, logger.d('myLocation -> $myLocat.. 2022. 12. 22.
How to query flutter hive data ? List matjipList({String? queryText}) { if (_matjipBox == null) { logger.e('박스 생성 실패'); return []; } else { if (queryText == null) { return _matjipBox!.values.toList(); } else { Set resultSet = {}; resultSet.addAll(_matjipBox!.values.where((element) => element.description?.contains(queryText) ?? false)); resultSet.addAll(_matjipBox!.values.where((element) => element.name.contains(queryText))); re.. 2022. 12. 17.
728x90