When searching via mapkit.Search, I run into a 500 Internal Server Error:
URL in network console: https://api.apple-mapkit.com/v1/search?q=restaurants&searchLocation=40.7185%2C-73.990139&lang=en
error: {message: "Error processing your request", details: []}
(All requests are authorized so that's not the issue).
Code is below.
var listRestaurants = function(error, data) {
console.log(data);
}
$(document).on('click', '.restaurants', function() {
var coord = new mapkit.Coordinate($(this).data('lat'), $(this).data('lng'));
var restaurantSearch = new mapkit.Search({
coordinate: coord
});
restaurantSearch.search('restaurants', listRestaurants);
});