今天我和一位客户谈过,他想在Android上构建一个简单的导航APP!
基本上我们可以使用谷歌地图,放置一些"我们的"标记来显示一些位置(餐馆,酒店等)..我们还需要向附近的用户朋友展示!
除了我在我自己的应用程序中找不到任何有关转弯导航实现的有用信息(无需切换到Google地图应用程序)之外,所有这些都可以在Android上的Google Maps API中实现.
有人可以简单澄清 - 是否可以在Android应用程序中使用谷歌地图来创建基于GPS的转向应用程序?
谢谢
我目前正在创建一个可以使用蓝牙设备的iPhone应用程序(Xcode 4.3.1,IOS 5)!这个应用程序的主要目标是室内导航(建筑物内的GPS不是很准确).
我在这里看到的唯一解决方案(将我的应用程序保存在AppStore上)是尝试扫描可用的蓝牙设备!
我尝试使用CoreBluetooth框架,但我没有获得可用设备的列表!也许我没有正确使用这些功能
#import <UIKit/UIKit.h>
#import <CoreBluetooth/CoreBluetooth.h>
@interface AboutBhyperView : UIViewController <CBPeripheralDelegate, CBCentralManagerDelegate>
{
CBCentralManager *mgr;
}
@property (readwrite, nonatomic) CBCentralManager *mgr;
@end
- (void)viewDidLoad
{
[super viewDidLoad];
mgr = [[CBCentralManager alloc] initWithDelegate:self queue:nil];
}
- (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI {
NSLog([NSString stringWithFormat:@"%@",[advertisementData description]]);
}
-(void)centralManager:(CBCentralManager *)central didRetrievePeripherals:(NSArray *)peripherals{
NSLog(@"This is it!");
}
- (void)centralManagerDidUpdateState:(CBCentralManager *)central{
NSString *messtoshow;
switch (central.state) {
case CBCentralManagerStateUnknown:
{
messtoshow=[NSString stringWithFormat:@"State unknown, update imminent."];
break;
}
case CBCentralManagerStateResetting:
{ …Run Code Online (Sandbox Code Playgroud)