-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ios): add new search completion APIs #638
feat(ios): add new search completion APIs #638
Conversation
import Map from 'ti.map';
const window = Ti.UI.createWindow();
const mapView = Map.createView({
mapType: Map.NORMAL_TYPE
});
window.add(mapView);
Map.addEventListener('didUpdateResults', event => {
console.warn('Found place:');
console.warn(event)
});
setTimeout(function() {
Map.search('Colloseum Rome');
}, 2000)
window.open(); returns
|
@m1ga Did you test with the latest version from today? There was an issue with the options being required (e.g. [WARN] Found place:
[WARN] {
[WARN] results: [
[WARN] {
[WARN] title: 'Colloseum',
[WARN] titleHighlightRanges: [Array],
[WARN] subtitle: 'Römer',
[WARN] subtitleHighlightRanges: [Array]
[WARN] },
[WARN] {
[WARN] title: 'Colosseum',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: 'Piazza del Colosseo 1, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Colloseum Loft',
[WARN] titleHighlightRanges: [Array],
[WARN] subtitle: 'Via Labicana 80, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Cavour Colloseum suite',
[WARN] titleHighlightRanges: [Array],
[WARN] subtitle: 'Via Cavour 103, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'London Coliseum',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: "St Martin's Lane, London, WC2N 4ES, England",
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Drinking Fountain',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: 'Colosseum, Piazza del Colosseo 21, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Los Angeles Memorial Coliseum',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: '3911 S Figueroa St, Los Angeles, CA 90037, United States',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Knoxville Civic Auditorium and Coliseum',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: '500 Howard Baker Jr Ave, Knoxville, TN 37915, United States',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Greensboro Coliseum Complex',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: '1921 W Gate City Blvd, Greensboro, NC 27403, United States',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: '3D Rewind Rome Colloseum',
[WARN] titleHighlightRanges: [Array],
[WARN] subtitle: "Via Capo d'Africa 5, 00184 Rome, Italy",
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Colosseum romantic loft',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: "Via Capo d'Africa 20A, 00184 Rome, Italy",
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Colosseum Palace Star',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: 'Via del Monte Oppio 5, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Colosseum Suite',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: 'Via Cavour 131, 00184 Rome, Italy',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Coliseum Alfonso Pérez',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: 'Avenida de Teresa de Calcuta, 62–84, 28903 Getafe, Madrid, Spain',
[WARN] subtitleHighlightRanges: []
[WARN] },
[WARN] {
[WARN] title: 'Coliseum',
[WARN] titleHighlightRanges: [],
[WARN] subtitle: '20 Rue Caumartin, 80000 Amiens, France',
[WARN] subtitleHighlightRanges: []
[WARN] }
[WARN] ],
[WARN] bubbles: true,
[WARN] type: 'didUpdateResults',
[WARN] source: Object {},
[WARN] cancelBubble: false
[WARN] } |
only used the zip from the first comment |
So the latest one works? :) |
yes, now it works 👍 |
See the new api docs for details!
Full example:
Download: ti.map-iphone-7.3.0.zip