Skip to content

Search globally and only cities? #3

@aloveric

Description

@aloveric

Very good MapKit demo, useful.
I have two questions related and thanks in advance.

  1. How to expand the region to global?
    I use this code in MKLocalSearchRequest but not work
let region = MKCoordinateRegionMakeWithDistance(mapView.userLocation.coordinate, 999999, 999999)
request.region = region
  1. Could I only get city names?
    Such as Paris / New York / Shanghai ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions