Amazon.com Inc. might have the right idea: A new study shows New York City is the best place on the planet for technology.

New York ranked first in an index measuring 30 global tech-heavy cities analyzed by real estate brokerage Savills PLC, with San Francisco in second place and London third. New York pulled ahead thanks to its volume of venture capital cash, large pool of talent — both homegrown and people attracted to the city — and the opportunities that exist for them.

"So much of it is talent," Paul Tostevin, author of the report, said from London. "New York can keep generating its own talent and, I think more importantly, recruiting it from around the world."