如何在不使用谷歌地方api的情况下显示地点?

时间:2022-08-22 10:28:20

Hi I am developing an android app for blind people where I want to display the nearby locations and bus stops to the user.

嗨,我正在为盲人开发一个Android应用程序,我想向用户显示附近的位置和公交车站。

I don't want to use google places api but I need to input the name,address,type,latitude and longitude of the stores in a MySQL database and then use this database to send relevant data to the android app.

我不想使用google places api但我需要在MySQL数据库中输入商店的名称,地址,类型,经度和经度,然后使用此数据库将相关数据发送到Android应用程序。

Can you post some tutorials where I can learn to do this.

你能发表一些我可以学习的教程吗?

1 个解决方案

#1


0  

first you have to get data from MySQL database use it in android

首先你要从MySQL数据库中获取数据,在android中使用它

here is tutorial1 and tutorial2 what you need and refrance link

这里是tutorial1和tutorial2你需要什么和refrance链接

adding marker:

float lat = -23.4456f;
float lng = 45.44334f;
LatLng point = new LatLng(lat, lng);

MAP.addMarker(new MarkerOptions().position(point).title("my place name"));

also check this for more detail and here is best detail as per you requirement (which is not in google map v2 but you get more idea).

还要检查这个以获取更多细节,这里是根据您的要求提供的最佳细节(这不是谷歌地图v2,但你得到更多的想法)。

#1


0  

first you have to get data from MySQL database use it in android

首先你要从MySQL数据库中获取数据,在android中使用它

here is tutorial1 and tutorial2 what you need and refrance link

这里是tutorial1和tutorial2你需要什么和refrance链接

adding marker:

float lat = -23.4456f;
float lng = 45.44334f;
LatLng point = new LatLng(lat, lng);

MAP.addMarker(new MarkerOptions().position(point).title("my place name"));

also check this for more detail and here is best detail as per you requirement (which is not in google map v2 but you get more idea).

还要检查这个以获取更多细节,这里是根据您的要求提供的最佳细节(这不是谷歌地图v2,但你得到更多的想法)。