Skip to content

Instantly share code, notes, and snippets.

@maplinkapi
Last active August 4, 2017 22:03
Show Gist options
  • Save maplinkapi/5213955 to your computer and use it in GitHub Desktop.
Save maplinkapi/5213955 to your computer and use it in GitHub Desktop.
//Cria endereço de saída
MLAddress *saida = [[MLAddress alloc]
initWithStreet:@"Rua Funchal"
andBuildingNumber:@"129"
andNeighborhood:@"Vila Olímpia"
andCity:@"São Paulo"
andState:@"SP"
andPostalCode:nil];
MLGeocodedAddress *startAddress = [[MLAddressGeocoder geocodeWithToken:TOKEN address:saida]objectAtIndex:0];
//Cria endereço de destino
MLAddress *destino = [[MLAddress alloc]
initWithStreet:@"R. Dr. Geraldo Campos Moreira"
andBuildingNumber:@"110"
andNeighborhood:@"Itaim Bibi"
andCity:@"São Paulo"
andState:@"SP"
andPostalCode:nil];
MLGeocodedAddress *endAddress = [[MLAddressGeocoder geocodeWithToken:TOKEN address:destino]objectAtIndex:0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment