我正在android中创建一个应用程序。我需要使用我收集的数据执行地图匹配。通过推送我收集的数据或在客户端本身具有来自服务器的主数据副本,哪种方式更好地在服务器上执行地图匹配?
2 回答
That depends on the amount of data and process time you your dealing with. In a traditional architecture your server should handle all the heavy load, but depending on the requirements you can decide to process it on the client.
Your should ask yourself questions like: How big is your data? What kind of match do you need to do? How expensive is the operation?
Map Matching should be done on server as it requires some complex computation. Map Box and Google both have their proprietary Map Matching API's. There is open source OSRM Apis as well.
PS: I see this question is 5 years old and mostly people today already know whats the right way to do it