Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ZXGeoParsedResult.h 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import "ZXParsedResult.h"
  17. @interface ZXGeoParsedResult : ZXParsedResult
  18. /**
  19. * @return latitude in degrees
  20. */
  21. @property (nonatomic, assign, readonly) double latitude;
  22. /**
  23. * @return longitude in degrees
  24. */
  25. @property (nonatomic, assign, readonly) double longitude;
  26. /**
  27. * @return altitude in meters. If not specified, in the geo URI, returns 0.0
  28. */
  29. @property (nonatomic, assign, readonly) double altitude;
  30. /**
  31. * @return query string associated with geo URI or null if none exists
  32. */
  33. @property (nonatomic, copy, readonly) NSString *query;
  34. - (id)initWithLatitude:(double)latitude longitude:(double)longitude altitude:(double)altitude query:(NSString *)query;
  35. + (id)geoParsedResultWithLatitude:(double)latitude longitude:(double)longitude altitude:(double)altitude query:(NSString *)query;
  36. - (NSString *)geoURI;
  37. @end