0

マップ機能を備えたアプリを構築しており、問題の解決策を見つけるためにインターネット全体を検索しています。

問題は、どの実装方法が自分に最適か分からないことです。

私は 2 つのことをやりたいと思っています。新しいプログラマーもこれを考えていると確信しています。

1) ユーザーの場所が表示され、リストに指定した場所のピン ポイントがあるマップ ビューを作成したいと考えています。

2) その人に最も近い店舗を (緯度/経度のリストに基づいて) 取得したい。

これは可能ですか?実装全体をコーディングする必要はありません。出発点が必要なだけです。

ありがとう、

4

1 に答える 1

2

Definitely possible. You need 3 things:

1)A MapView. You need to sign up for a Google Maps id, they have some tutorials for implementing one where you do. The Maps API has functionality for showing your location and for putting pins on the map.

2)You'll need to get your own location for your calculation. This is a simple use of the LocationManager and Location classes.

3)You need to get a list of the stores with their latitude and longitude. At startup you parse the list, add them to the map overlay, and you can find the distance between you and them using the Location class's distance functions.

于 2013-01-13T02:53:35.837 に答える